Class LimitExceededException

  • All Implemented Interfaces:
    Serializable

    public class LimitExceededException
    extends AmazonServiceException

    The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded.

    See Also:
    Serialized Form
    • Constructor Detail

      • LimitExceededException

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

      • withErrorCode

        public LimitExceededException 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:
        LimitExceededErrorCode
      • setErrorCode

        public void setErrorCode​(LimitExceededErrorCode 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:
        LimitExceededErrorCode
      • withErrorCode

        public LimitExceededException withErrorCode​(LimitExceededErrorCode 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:
        LimitExceededErrorCode
      • 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 LimitExceededException 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.