Package io.ably.lib.types
Class AblyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
io.ably.lib.types.AblyException
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
AblyException.HostFailedException,HttpCore.AuthRequiredException,MessageDecodeException
public class AblyException
extends java.lang.Exception
An exception type encapsulating an Ably error code
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAblyException.HostFailedException -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protectedAblyException(java.lang.Throwable throwable, ErrorInfo reason)Constructor for use where there is an ErrorInfo available -
Method Summary
Modifier and Type Method Description static AblyExceptionfromErrorInfo(ErrorInfo errorInfo)static AblyExceptionfromErrorInfo(java.lang.Throwable t, ErrorInfo errorInfo)static AblyExceptionfromThrowable(java.lang.Throwable t)Get an exception from a throwable occurring locally
-
Field Details
-
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:
-