Enum aws_sdk_sagemakerruntime::Error
source · #[non_exhaustive]pub enum Error {
InternalDependencyException(InternalDependencyException),
InternalFailure(InternalFailure),
InternalStreamFailure(InternalStreamFailure),
ModelError(ModelError),
ModelNotReadyException(ModelNotReadyException),
ModelStreamError(ModelStreamError),
ServiceUnavailable(ServiceUnavailable),
ValidationError(ValidationError),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InternalDependencyException(InternalDependencyException)
Your request caused an exception with an internal dependency. Contact customer support.
InternalFailure(InternalFailure)
An internal failure occurred.
InternalStreamFailure(InternalStreamFailure)
The stream processing failed because of an unknown error, exception or failure. Try your request again.
ModelError(ModelError)
Model (owned by the customer in the container) returned 4xx or 5xx error code.
ModelNotReadyException(ModelNotReadyException)
Either a serverless endpoint variant's resources are still being provisioned, or a multi-model endpoint is still downloading or loading the target model. Wait and try your request again.
ModelStreamError(ModelStreamError)
An error occurred while streaming the response body. This error can have the following error codes:
- ModelInvocationTimeExceeded
-
The model failed to finish sending the response within the timeout period allowed by Amazon SageMaker.
- StreamBroken
-
The Transmission Control Protocol (TCP) connection between the client and the model was reset or closed.
The service is unavailable. Try your call again.
ValidationError(ValidationError)
Inspect your request and try again.
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).