ChannelIOException Stay organized with collections Save and categorize content based on your preferences.
Page Summary
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 ofIOException which can be thrown from the streams returned by Channel.getInputStream(GoogleApiClient) and Channel.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 Channel.close(GoogleApiClient, int) if that's the reason for the stream closing, or0 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
| synchronized final void | addSuppressed(Throwable arg0) |
| synchronizedThrowable | fillInStackTrace() |
| synchronizedThrowable | getCause() |
| String | getLocalizedMessage() |
| String | getMessage() |
| StackTraceElement[] | getStackTrace() |
| synchronized finalThrowable[] | getSuppressed() |
| synchronizedThrowable | initCause(Throwable arg0) |
| void | printStackTrace() |
| void | printStackTrace(PrintWriter arg0) |
| void | printStackTrace(PrintStream arg0) |
| void | setStackTrace(StackTraceElement[] arg0) |
| String | toString() |
Public Constructors
publicChannelIOException(String message, int closeReason, int appSpecificErrorCode)
Public Methods
public intgetAppSpecificErrorCode()
Returns the app-specific error code passed to Channel.close(GoogleApiClient, int) if that's the reason for the stream closing, or0 otherwise.
public intgetCloseReason()
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.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.