@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ReadOnlyViolationException extends AmazonNeptunedataException
Raised when a request attempts to write to a read-only resource.
AmazonServiceException.ErrorType| Constructor and Description |
|---|
ReadOnlyViolationException(String message)
Constructs a new ReadOnlyViolationException 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 which the parameter is missing.
|
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 which the parameter is missing.
|
ReadOnlyViolationException |
withCode(String code)
The HTTP status code returned with the exception.
|
ReadOnlyViolationException |
withDetailedMessage(String detailedMessage)
A detailed message describing the problem.
|
ReadOnlyViolationException |
withRequestId(String requestId)
The ID of the request in which the parameter is missing.
|
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getProxyHost, getRawResponse, getRawResponseContent, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setProxyHost, setRawResponse, setRawResponseContent, setServiceName, setStatusCodeisRetryableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ReadOnlyViolationException(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 ReadOnlyViolationException 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 which the parameter is missing.
setRequestId in class AmazonServiceExceptionrequestId - The ID of the request in which the parameter is missing.public String getRequestId()
The ID of the request in which the parameter is missing.
getRequestId in class AmazonServiceExceptionpublic ReadOnlyViolationException withRequestId(String requestId)
The ID of the request in which the parameter is missing.
requestId - The ID of the request in which the parameter is missing.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 ReadOnlyViolationException withCode(String code)
The HTTP status code returned with the exception.
code - The HTTP status code returned with the exception.