Class InvalidRequestException

    • Constructor Detail

      • InvalidRequestException

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

      • 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.