@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ConstraintViolationException extends AmazonNeptunedataException
Raised when a value in a request field did not satisfy required constraints.
AmazonServiceException.ErrorType
Constructor and Description |
---|
ConstraintViolationException(String message)
Constructs a new ConstraintViolationException 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 request in question.
|
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 request in question.
|
ConstraintViolationException |
withCode(String code)
The HTTP status code returned with the exception.
|
ConstraintViolationException |
withDetailedMessage(String detailedMessage)
A detailed message describing the problem.
|
ConstraintViolationException |
withRequestId(String requestId)
The ID of the request in question.
|
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 ConstraintViolationException(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 ConstraintViolationException 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 request in question.
setRequestId
in class AmazonServiceException
requestId
- The ID of the request in question.public String getRequestId()
The ID of the request in question.
getRequestId
in class AmazonServiceException
public ConstraintViolationException withRequestId(String requestId)
The ID of the request in question.
requestId
- The ID of the request in question.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 ConstraintViolationException withCode(String code)
The HTTP status code returned with the exception.
code
- The HTTP status code returned with the exception.