Class AWSIotException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.amazonaws.services.iot.client.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 Summary
Constructors Constructor Description AWSIotException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AWSIotDeviceErrorCodegetErrorCode()Error 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 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 codemessage- 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
-
-