public class UnexpectedException extends SdkException
Use this exception to signal that the code has reached a state that was not anticipated and should be addressed during development or testing.
Constructor and Description |
---|
UnexpectedException()
Constructs a new UnexpectedException.
|
UnexpectedException(java.lang.String message)
Constructs a new UnexpectedException with the specified detail message.
|
UnexpectedException(java.lang.String message,
java.lang.Throwable cause)
Constructs a new UnexpectedException with the specified detail message and cause.
|
UnexpectedException(java.lang.String message,
java.lang.Throwable cause,
boolean enableSuppression,
boolean writableStackTrace)
Constructs a new UnexpectedException with the specified detail message, cause, suppression
enabled or disabled, and writable stack trace enabled or disabled.
|
UnexpectedException(java.lang.Throwable cause)
Constructs a new UnexpectedException with the cause.
|
public UnexpectedException()
public UnexpectedException(java.lang.String message)
message
- the detail message, providing additional information about the error.public UnexpectedException(java.lang.String message, java.lang.Throwable cause)
message
- the detail message, providing additional information about the error.cause
- the cause of the exception, which can be retrieved later by the Throwable.getCause()
method.public UnexpectedException(java.lang.Throwable cause)
cause
- the cause of the exception, which can be retrieved later by the Throwable.getCause()
method.public UnexpectedException(java.lang.String message, java.lang.Throwable cause, boolean enableSuppression, boolean writableStackTrace)
message
- the detail message, providing additional information about the error.cause
- the cause of the exception, which can be retrieved later by the Throwable.getCause()
method. A null
value is permitted, and indicates that the
cause is nonexistent or unknown.enableSuppression
- whether suppression is enabled or disabled.writableStackTrace
- whether the stack trace should be writable.