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 class ChannelIOException extends IOException

A subclass of IOException 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, or 0 otherwise.

Inherited Method Summary

From class java.lang.Throwable
synchronized final void
addSuppressed(Throwable arg0)
synchronized Throwable
fillInStackTrace()
synchronized Throwable
getCause()
String
getLocalizedMessage()
String
getMessage()
StackTraceElement[]
getStackTrace()
synchronized final Throwable[]
getSuppressed()
synchronized Throwable
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()
final Class<?>
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

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.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024年10月31日 UTC.