A subclass of IOException
which can
be thrown from the streams returned by
getInputStream(GoogleApiClient)
and
getOutputStream(GoogleApiClient)
.
Public Constructor Summary
ChannelIOException(String message, int
closeReason, int appSpecificErrorCode)
|
Public Method Summary
int |
getAppSpecificErrorCode()
Returns the app-specific error code passed to
close(GoogleApiClient, int) if that's the reason for the stream
closing, or 0 otherwise.
|
int |
getCloseReason()
Returns one of
CLOSE_REASON_NORMAL ,
CLOSE_REASON_DISCONNECTED ,
CLOSE_REASON_REMOTE_CLOSE , or
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
close(GoogleApiClient, int)
if that's the reason for the stream closing, or
0
otherwise.
public int getCloseReason ()
Returns one of
CLOSE_REASON_NORMAL
,
CLOSE_REASON_DISCONNECTED
,
CLOSE_REASON_REMOTE_CLOSE
, or
CLOSE_REASON_LOCAL_CLOSE
, to indicate the reason for the stream closing.