Summary: Ctors | Methods | Inherited Methods | [Expand All]
public class

# ChannelIOException

extends IOException

java.lang.Object
↳ | java.lang.Throwable
| ↳ | java.lang.Exception
|  | ↳ | java.io.IOException
|  |  | ↳ | com.google.android.gms.wearable.ChannelIOException

## Class Overview

A subclass of `IOException` which can be thrown from the streams returned by `getInputStream(GoogleApiClient)` and `getOutputStream(GoogleApiClient)`.

## Summary

Public Constructors
| ChannelIOException(String message, int closeReason, int appSpecificErrorCode)

Public Methods
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.

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