Class InvalidInputException

All Implemented Interfaces:
Serializable

public class InvalidInputException extends AmazonServiceException

The request was rejected because an invalid or out-of-range value was supplied for an input parameter.

See Also:
  • Constructor Details

    • InvalidInputException

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

    • setErrorCode

      public void setErrorCode(String errorCode)

      Code that indicates the type of error that is generated.

      Overrides:
      setErrorCode in class AmazonServiceException
      Parameters:
      errorCode - Code that indicates the type of error that is generated.
      See Also:
    • getErrorCode

      public String getErrorCode()

      Code that indicates the type of error that is generated.

      Overrides:
      getErrorCode in class AmazonServiceException
      Returns:
      Code that indicates the type of error that is generated.
      See Also:
    • withErrorCode

      public InvalidInputException withErrorCode(String errorCode)

      Code that indicates the type of error that is generated.

      Parameters:
      errorCode - Code that indicates the type of error that is generated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setErrorCode

      public void setErrorCode(InvalidInputErrorCode errorCode)

      Code that indicates the type of error that is generated.

      Parameters:
      errorCode - Code that indicates the type of error that is generated.
      See Also:
    • withErrorCode

      public InvalidInputException withErrorCode(InvalidInputErrorCode errorCode)

      Code that indicates the type of error that is generated.

      Parameters:
      errorCode - Code that indicates the type of error that is generated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setCanRetry

      public void setCanRetry(Boolean canRetry)

      You can immediately retry your request.

      Parameters:
      canRetry - You can immediately retry your request.
    • getCanRetry

      public Boolean getCanRetry()

      You can immediately retry your request.

      Returns:
      You can immediately retry your request.
    • withCanRetry

      public InvalidInputException withCanRetry(Boolean canRetry)

      You can immediately retry your request.

      Parameters:
      canRetry - You can immediately retry your request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • isCanRetry

      public Boolean isCanRetry()

      You can immediately retry your request.

      Returns:
      You can immediately retry your request.