ChannelIOException

  • 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.

public classChannelIOException extendsIOException

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

Inherited Method Summary

From class java.lang.Throwable
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()
From class java.lang.Object
Object
clone()
boolean
equals(Object arg0)
void
finalize()
finalClass<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

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.

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.