Package io.ably.lib.types
Class AblyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
io.ably.lib.types.AblyException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
-
AblyException.HostFailedException,HttpCore.AuthRequiredException,MessageDecodeException
An exception type encapsulating an Ably error code
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAblyException(Throwable throwable, ErrorInfo reason) Constructor for use where there is an ErrorInfo available -
Method Summary
Modifier and TypeMethodDescriptionstatic AblyExceptionfromErrorInfo(ErrorInfo errorInfo) static AblyExceptionfromErrorInfo(Throwable t, ErrorInfo errorInfo) static AblyExceptionGet an exception from a throwable occurring locallyMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
errorInfo
-
-
Constructor Details
-
AblyException
Constructor for use where there is an ErrorInfo available
-
-
Method Details
-
fromErrorInfo
-
fromErrorInfo
-
fromThrowable
Get an exception from a throwable occurring locally- Parameters:
-
t- - Returns:
-