AI-generated Key Takeaways
-
ChannelIOException is a subclass of IOException that can be thrown from streams returned by Channel.getInputStream and Channel.getOutputStream.
-
It has a public constructor that takes a message, close reason, and app specific error code.
-
Public methods include getAppSpecificErrorCode and getCloseReason, providing details about the error.
A subclass of IOException
which can
be thrown from the streams returned by Channel.getInputStream(GoogleApiClient)
and Channel.getOutputStream(GoogleApiClient)
.
Public Constructor Summary
Public Method Summary
| int | getAppSpecificErrorCode
()
Returns the app-specific error code passed to
Channel.close(GoogleApiClient, int)
if that's the reason for the
stream closing, or 0
otherwise. |
| int | getCloseReason
()
Returns one of
ChannelApi.ChannelListener.CLOSE_REASON_NORMAL
, ChannelApi.ChannelListener.CLOSE_REASON_DISCONNECTED
, ChannelApi.ChannelListener.CLOSE_REASON_REMOTE_CLOSE
, or ChannelApi.ChannelListener.CLOSE_REASON_LOCAL_CLOSE
, to indicate the
reason for the stream closing. |
Inherited Method Summary
Public Constructors
public ChannelIOException ( String message, int closeReason, int appSpecificErrorCode)
Public Methods
public int getAppSpecificErrorCode ()
Returns the app-specific error code passed to Channel.close(GoogleApiClient, int)
if that's the reason for the stream
closing, or 0
otherwise.
public int getCloseReason ()
Returns one of ChannelApi.ChannelListener.CLOSE_REASON_NORMAL
, ChannelApi.ChannelListener.CLOSE_REASON_DISCONNECTED
, ChannelApi.ChannelListener.CLOSE_REASON_REMOTE_CLOSE
, or ChannelApi.ChannelListener.CLOSE_REASON_LOCAL_CLOSE
, to indicate the reason
for the stream closing.

