@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BadRequestException extends AmazonElasticFileSystemException
Returned if the request is malformed or contains an error such as an invalid parameter value or a missing required parameter.
AmazonServiceException.ErrorType | Constructor and Description |
|---|
BadRequestException (String message)
Constructs a new BadRequestException with the specified error message.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorCode ()
Returns the AWS error code represented by this exception.
|
void |
setErrorCode (String errorCode)
Sets the AWS error code represented by this exception.
|
BadRequestException |
withErrorCode (String errorCode) |
getErrorMessage, getErrorType, getHttpHeaders, getMessage, getProxyHost, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorMessage, setErrorType, setHttpHeaders, setProxyHost, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCode isRetryable addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString public BadRequestException(String message)
message - Describes the error encountered.public void setErrorCode(String errorCode)
AmazonServiceException setErrorCode in class AmazonServiceException errorCode - public String getErrorCode()
AmazonServiceException getErrorCode in class AmazonServiceException public BadRequestException withErrorCode(String errorCode)
errorCode -