Package com.dsi.ant.channel
Class ChannelNotAvailableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.dsi.ant.channel.ChannelNotAvailableException
- All Implemented Interfaces:
android.os.Parcelable
,Serializable
This exception is thrown when a channel could not be allocated.
- Since:
- 4.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface android.os.Parcelable
android.os.Parcelable.ClassLoaderCreator<T>, android.os.Parcelable.Creator<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final android.os.Parcelable.Creator<ChannelNotAvailableException>
For ParcelableWhy a channel could not be acquired.Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs the exception with the given reasonChannelNotAvailableException
(ChannelNotAvailableReason reason, String detailMessage) Constructs the exception with the given reason and message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
reasonCode
Why a channel could not be acquired.- Since:
- 4.0
-
CREATOR
For Parcelable- Since:
- 4.0
-
-
Constructor Details
-
ChannelNotAvailableException
Constructs the exception with the given reason- Parameters:
reason
- The reason why a channel is not available.- Since:
- 4.0
-
ChannelNotAvailableException
Constructs the exception with the given reason and message.- Parameters:
reason
- The reason why a channel is not available.detailMessage
- The message to be included in the exception- Since:
- 4.0
-
-
Method Details
-
describeContents
public int describeContents()- Specified by:
describeContents
in interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags) - Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
-