@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BadRequestException extends AmazonNeptunedataException
Raised when a request is submitted that cannot be processed.
AmazonServiceException.ErrorType
Constructor and Description |
---|
BadRequestException(String message)
Constructs a new BadRequestException with the specified error message.
|
Modifier and Type | Method and Description |
---|---|
String |
getCode()
The HTTP status code returned with the exception.
|
String |
getDetailedMessage()
A detailed message describing the problem.
|
String |
getRequestId()
The ID of the bad request.
|
void |
setCode(String code)
The HTTP status code returned with the exception.
|
void |
setDetailedMessage(String detailedMessage)
A detailed message describing the problem.
|
void |
setRequestId(String requestId)
The ID of the bad request.
|
BadRequestException |
withCode(String code)
The HTTP status code returned with the exception.
|
BadRequestException |
withDetailedMessage(String detailedMessage)
A detailed message describing the problem.
|
BadRequestException |
withRequestId(String requestId)
The ID of the bad request.
|
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getProxyHost, getRawResponse, getRawResponseContent, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setProxyHost, setRawResponse, setRawResponseContent, 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 setDetailedMessage(String detailedMessage)
A detailed message describing the problem.
detailedMessage
- A detailed message describing the problem.public String getDetailedMessage()
A detailed message describing the problem.
public BadRequestException withDetailedMessage(String detailedMessage)
A detailed message describing the problem.
detailedMessage
- A detailed message describing the problem.public void setRequestId(String requestId)
The ID of the bad request.
setRequestId
in class AmazonServiceException
requestId
- The ID of the bad request.public String getRequestId()
The ID of the bad request.
getRequestId
in class AmazonServiceException
public BadRequestException withRequestId(String requestId)
The ID of the bad request.
requestId
- The ID of the bad request.public void setCode(String code)
The HTTP status code returned with the exception.
code
- The HTTP status code returned with the exception.public String getCode()
The HTTP status code returned with the exception.
public BadRequestException withCode(String code)
The HTTP status code returned with the exception.
code
- The HTTP status code returned with the exception.