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
ConstructorsModifierConstructorDescriptionprotected
AblyException
(Throwable throwable, ErrorInfo reason) Constructor for use where there is an ErrorInfo available -
Method Summary
Modifier and TypeMethodDescriptionstatic AblyException
fromErrorInfo
(ErrorInfo errorInfo) static AblyException
fromErrorInfo
(Throwable t, ErrorInfo errorInfo) static AblyException
Get 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:
-