Class SdkException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AuthTokenFailureException, ProtocolInvalidRequestException, ProtocolInvalidResponseException, ProtocolMessageTooBigException, ProtocolSendBufferFullException, ProtocolSendFailedException, ProtocolTimeoutException, SdkNotConnectedException, ServerErrorResponseException, WebSocketConnectionException

public abstract class SdkException extends RuntimeException
The base class for all SDK exceptions.
See Also:
  • Constructor Details

    • SdkException

      public SdkException(int code, String message, Throwable cause)
      Constructs a new SdkException with the specified code, message, and cause.
      Parameters:
      code - the error code associated with the exception
      message - the detail message
      cause - the cause (which is saved for later retrieval by the getCause() method)
  • Method Details

    • getCode

      public int getCode()
      Get the error code associated with the exception.
      Returns:
      The error code.