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 class  AblyException.HostFailedException  
  • Field Summary

    Fields 
    Modifier and Type Field Description
    ErrorInfo errorInfo  
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
    protected AblyException​(java.lang.Throwable throwable, ErrorInfo reason)
    Constructor for use where there is an ErrorInfo available
  • Method Summary

    Modifier and Type Method Description
    static AblyException fromErrorInfo​(ErrorInfo errorInfo)  
    static AblyException fromErrorInfo​(java.lang.Throwable t, ErrorInfo errorInfo)  
    static AblyException fromThrowable​(java.lang.Throwable t)
    Get an exception from a throwable occurring locally

    Methods inherited from class java.lang.Throwable

    addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait