@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResourceNotFoundException extends AWSDeadlineException
The requested resource can't be found.
AmazonServiceException.ErrorType
Constructor and Description |
---|
ResourceNotFoundException(String message)
Constructs a new ResourceNotFoundException with the specified error message.
|
Modifier and Type | Method and Description |
---|---|
ResourceNotFoundException |
addContextEntry(String key,
String value)
Add a single Context entry
|
ResourceNotFoundException |
clearContextEntries()
Removes all the entries added into Context.
|
Map<String,String> |
getContext()
Information about the resources in use when the exception was thrown.
|
String |
getResourceId()
The identifier of the resource that couldn't be found.
|
String |
getResourceType()
The type of the resource that couldn't be found.
|
void |
setContext(Map<String,String> context)
Information about the resources in use when the exception was thrown.
|
void |
setResourceId(String resourceId)
The identifier of the resource that couldn't be found.
|
void |
setResourceType(String resourceType)
The type of the resource that couldn't be found.
|
ResourceNotFoundException |
withContext(Map<String,String> context)
Information about the resources in use when the exception was thrown.
|
ResourceNotFoundException |
withResourceId(String resourceId)
The identifier of the resource that couldn't be found.
|
ResourceNotFoundException |
withResourceType(String resourceType)
The type of the resource that couldn't be found.
|
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getProxyHost, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setProxyHost, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCode
isRetryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ResourceNotFoundException(String message)
message
- Describes the error encountered.public Map<String,String> getContext()
Information about the resources in use when the exception was thrown.
public void setContext(Map<String,String> context)
Information about the resources in use when the exception was thrown.
context
- Information about the resources in use when the exception was thrown.public ResourceNotFoundException withContext(Map<String,String> context)
Information about the resources in use when the exception was thrown.
context
- Information about the resources in use when the exception was thrown.public ResourceNotFoundException addContextEntry(String key, String value)
public ResourceNotFoundException clearContextEntries()
public void setResourceId(String resourceId)
The identifier of the resource that couldn't be found.
resourceId
- The identifier of the resource that couldn't be found.public String getResourceId()
The identifier of the resource that couldn't be found.
public ResourceNotFoundException withResourceId(String resourceId)
The identifier of the resource that couldn't be found.
resourceId
- The identifier of the resource that couldn't be found.public void setResourceType(String resourceType)
The type of the resource that couldn't be found.
resourceType
- The type of the resource that couldn't be found.public String getResourceType()
The type of the resource that couldn't be found.
public ResourceNotFoundException withResourceType(String resourceType)
The type of the resource that couldn't be found.
resourceType
- The type of the resource that couldn't be found.