Class InvalidRequestException

All Implemented Interfaces:
Serializable

public class InvalidRequestException extends AmazonServiceException

This exception occurs when there is something wrong with user input.

See Also:
  • Constructor Details

    • InvalidRequestException

      public InvalidRequestException(String message)
      Constructs a new InvalidRequestException with the specified error message.
      Parameters:
      message - Describes the error encountered.
  • Method Details

    • setErrorCode

      public void setErrorCode(String errorCode)

      The error code associated with the exception.

      Overrides:
      setErrorCode in class AmazonServiceException
      Parameters:
      errorCode - The error code associated with the exception.
    • getErrorCode

      public String getErrorCode()

      The error code associated with the exception.

      Overrides:
      getErrorCode in class AmazonServiceException
      Returns:
      The error code associated with the exception.
    • withErrorCode

      public InvalidRequestException withErrorCode(String errorCode)

      The error code associated with the exception.

      Parameters:
      errorCode - The error code associated with the exception.
      Returns:
      Returns a reference to this object so that method calls can be chained together.