Class UnexpectedException

All Implemented Interfaces:
Serializable

public class UnexpectedException extends SdkException
This exception is thrown to indicate that an unexpected condition has occurred which theoretically should never happen during the normal execution of the program.

Use this exception to signal that the code has reached a state that was not anticipated and should be addressed during development or testing.

See Also:
  • Constructor Details

    • UnexpectedException

      public UnexpectedException()
      Constructs a new UnexpectedException.
    • UnexpectedException

      public UnexpectedException(String message)
      Constructs a new UnexpectedException with the specified detail message.
      Parameters:
      message - the detail message, providing additional information about the error.
    • UnexpectedException

      public UnexpectedException(String message, Throwable cause)
      Constructs a new UnexpectedException with the specified detail message and cause.
      Parameters:
      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.
    • UnexpectedException

      public UnexpectedException(Throwable cause)
      Constructs a new UnexpectedException with the cause.
      Parameters:
      cause - the cause of the exception, which can be retrieved later by the Throwable.getCause() method.
    • UnexpectedException

      public UnexpectedException(String message, 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.
      Parameters:
      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.