Class AWSIotException

  • All Implemented Interfaces:
    Serializable

    public class AWSIotException
    extends Exception
    This is a generic exception that can be thrown in most of the APIs, blocking and non-blocking, by the library.
    See Also:
    Serialized Form
    • Constructor Detail

      • AWSIotException

        public AWSIotException​(String message)
        Instantiates a new exception object.
        Parameters:
        message - the error message
      • AWSIotException

        public AWSIotException​(AWSIotDeviceErrorCode errorCode,
                               String message)
        Instantiates a new exception object.
        Parameters:
        errorCode - the error code
        message - the error message
      • AWSIotException

        public AWSIotException​(Throwable cause)
        Instantiates a new exception object.
        Parameters:
        cause - the cause. A null value is permitted, and indicates that the cause is nonexistent or unknown.
    • Method Detail

      • getErrorCode

        public AWSIotDeviceErrorCode getErrorCode()
        Error code for shadow methods. It's only applicable to exceptions thrown by those shadow method APIs.
        Returns:
        the error code of the shadow method exception
      • setErrorCode

        public void setErrorCode​(AWSIotDeviceErrorCode errorCode)
        Error code for shadow methods. It's only applicable to exceptions thrown by those shadow method APIs.
        Parameters:
        errorCode - the new error code for the shadow method exception