Class NoSuchEntityException

  • All Implemented Interfaces:
    Serializable

    public class NoSuchEntityException
    extends AmazonServiceException

    The request was rejected because it referenced an entity that does not exist. The error code describes the entity.

    See Also:
    Serialized Form
    • Constructor Detail

      • NoSuchEntityException

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

      • withErrorCode

        public NoSuchEntityException 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:
        NoSuchEntityErrorCode
      • setErrorCode

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

        public NoSuchEntityException withErrorCode​(NoSuchEntityErrorCode 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:
        NoSuchEntityErrorCode
      • 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 NoSuchEntityException 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.