Enum aws_sdk_bedrockruntime::Error
source · #[non_exhaustive]pub enum Error {
AccessDeniedException(AccessDeniedException),
InternalServerException(InternalServerException),
ModelErrorException(ModelErrorException),
ModelNotReadyException(ModelNotReadyException),
ModelStreamErrorException(ModelStreamErrorException),
ModelTimeoutException(ModelTimeoutException),
ResourceNotFoundException(ResourceNotFoundException),
ServiceQuotaExceededException(ServiceQuotaExceededException),
ThrottlingException(ThrottlingException),
ValidationException(ValidationException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccessDeniedException(AccessDeniedException)
The request is denied because of missing access permissions.
InternalServerException(InternalServerException)
An internal server error occurred. Retry your request.
ModelErrorException(ModelErrorException)
The request failed due to an error while processing the model.
ModelNotReadyException(ModelNotReadyException)
The model specified in the request is not ready to serve inference requests.
ModelStreamErrorException(ModelStreamErrorException)
An error occurred while streaming the response.
ModelTimeoutException(ModelTimeoutException)
The request took too long to process. Processing time exceeded the model timeout length.
ResourceNotFoundException(ResourceNotFoundException)
The specified resource ARN was not found. Check the ARN and try your request again.
ServiceQuotaExceededException(ServiceQuotaExceededException)
The number of requests exceeds the service quota. Resubmit your request later.
ThrottlingException(ThrottlingException)
The number of requests exceeds the limit. Resubmit your request later.
ValidationException(ValidationException)
Input validation failed. Check your request parameters and retry the request.
Unhandled(Unhandled)
Unhandled
directly is not forwards compatible. Instead, match using a variable wildcard pattern and check .code()
:
err if err.code() == Some("SpecificExceptionCode") => { /* handle the error */ }
See ProvideErrorMetadata
for what information is available for the error.An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).