@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ModelErrorException extends AmazonBedrockRuntimeException
The request failed due to an error while processing the model.
AmazonServiceException.ErrorType| Constructor and Description |
|---|
ModelErrorException(String message)
Constructs a new ModelErrorException with the specified error message.
|
| Modifier and Type | Method and Description |
|---|---|
Integer |
getOriginalStatusCode()
The original status code.
|
String |
getResourceName()
The resource name.
|
void |
setOriginalStatusCode(Integer originalStatusCode)
The original status code.
|
void |
setResourceName(String resourceName)
The resource name.
|
ModelErrorException |
withOriginalStatusCode(Integer originalStatusCode)
The original status code.
|
ModelErrorException |
withResourceName(String resourceName)
The resource name.
|
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getProxyHost, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setProxyHost, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCodeisRetryableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ModelErrorException(String message)
message - Describes the error encountered.public void setOriginalStatusCode(Integer originalStatusCode)
The original status code.
originalStatusCode - The original status code.public Integer getOriginalStatusCode()
The original status code.
public ModelErrorException withOriginalStatusCode(Integer originalStatusCode)
The original status code.
originalStatusCode - The original status code.public void setResourceName(String resourceName)
The resource name.
resourceName - The resource name.public String getResourceName()
The resource name.
public ModelErrorException withResourceName(String resourceName)
The resource name.
resourceName - The resource name.