Class NoSuchEntityException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.amazonaws.AmazonClientException
com.amazonaws.AmazonServiceException
com.amazonaws.services.inspector.model.NoSuchEntityException
- All Implemented Interfaces:
Serializable
The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.amazonaws.AmazonServiceException
AmazonServiceException.ErrorType
-
Constructor Summary
ConstructorsConstructorDescriptionNoSuchEntityException
(String message) Constructs a new NoSuchEntityException with the specified error message. -
Method Summary
Modifier and TypeMethodDescriptionYou can immediately retry your request.Code that indicates the type of error that is generated.You can immediately retry your request.void
setCanRetry
(Boolean canRetry) You can immediately retry your request.void
setErrorCode
(NoSuchEntityErrorCode errorCode) Code that indicates the type of error that is generated.void
setErrorCode
(String errorCode) Code that indicates the type of error that is generated.withCanRetry
(Boolean canRetry) You can immediately retry your request.withErrorCode
(NoSuchEntityErrorCode errorCode) Code that indicates the type of error that is generated.withErrorCode
(String errorCode) Code that indicates the type of error that is generated.Methods inherited from class com.amazonaws.AmazonServiceException
getErrorMessage, getErrorType, getMessage, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorMessage, setErrorType, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCode
Methods inherited from class com.amazonaws.AmazonClientException
isRetryable
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoSuchEntityException
Constructs a new NoSuchEntityException with the specified error message.- Parameters:
message
- Describes the error encountered.
-
-
Method Details
-
setErrorCode
Code that indicates the type of error that is generated.
- Overrides:
setErrorCode
in classAmazonServiceException
- Parameters:
errorCode
- Code that indicates the type of error that is generated.- See Also:
-
getErrorCode
Code that indicates the type of error that is generated.
- Overrides:
getErrorCode
in classAmazonServiceException
- Returns:
- Code that indicates the type of error that is generated.
- See Also:
-
withErrorCode
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
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
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
You can immediately retry your request.
- Parameters:
canRetry
- You can immediately retry your request.
-
getCanRetry
You can immediately retry your request.
- Returns:
- You can immediately retry your request.
-
withCanRetry
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
You can immediately retry your request.
- Returns:
- You can immediately retry your request.
-