Class AWSIotException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.amazonaws.services.iot.client.AWSIotException
- All Implemented Interfaces:
Serializable
This is a generic exception that can be thrown in most of the APIs, blocking
and non-blocking, by the library.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAWSIotException(AWSIotDeviceErrorCode errorCode, String message) Instantiates a new exception object.AWSIotException(String message) Instantiates a new exception object.AWSIotException(Throwable cause) Instantiates a new exception object. -
Method Summary
Modifier and TypeMethodDescriptionError code for shadow methods.voidsetErrorCode(AWSIotDeviceErrorCode errorCode) Error code for shadow methods.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AWSIotException
Instantiates a new exception object.- Parameters:
message- the error message
-
AWSIotException
Instantiates a new exception object.- Parameters:
errorCode- the error codemessage- the error message
-
AWSIotException
Instantiates a new exception object.- Parameters:
cause- the cause. A null value is permitted, and indicates that the cause is nonexistent or unknown.
-
-
Method Details
-
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
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
-