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.ExceptionAn exception type encapsulating an Ably error code- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAblyException.HostFailedException
-
Constructor Summary
Constructors Modifier Constructor Description protectedAblyException(java.lang.Throwable throwable, ErrorInfo reason)Constructor for use where there is an ErrorInfo available
-
Method Summary
All Methods Static Methods Concrete Methods 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 Detail
-
errorInfo
public ErrorInfo errorInfo
-
-
Constructor Detail
-
AblyException
protected AblyException(java.lang.Throwable throwable, ErrorInfo reason)Constructor for use where there is an ErrorInfo available
-
-
Method Detail
-
fromErrorInfo
public static AblyException fromErrorInfo(ErrorInfo errorInfo)
-
fromErrorInfo
public static AblyException fromErrorInfo(java.lang.Throwable t, ErrorInfo errorInfo)
-
fromThrowable
public static AblyException fromThrowable(java.lang.Throwable t)
Get an exception from a throwable occurring locally- Parameters:
t-- Returns:
-
-