#[non_exhaustive]
pub enum PredictErrorKind {
InternalServerException(InternalServerException),
InvalidInputException(InvalidInputException),
LimitExceededException(LimitExceededException),
PredictorNotMountedException(PredictorNotMountedException),
ResourceNotFoundException(ResourceNotFoundException),
Unhandled(Unhandled),
}
Expand description
Types of errors that can occur for the Predict
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InternalServerException(InternalServerException)
An error on the server occurred when trying to process a request.
InvalidInputException(InvalidInputException)
An error on the client occurred. Typically, the cause is an invalid input value.
LimitExceededException(LimitExceededException)
The subscriber exceeded the maximum number of operations. This exception can occur when listing objects such as DataSource
.
PredictorNotMountedException(PredictorNotMountedException)
The exception is thrown when a predict request is made to an unmounted MLModel
.
ResourceNotFoundException(ResourceNotFoundException)
A specified resource cannot be located.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
When logging an error from the SDK, it is recommended that you either wrap the error in
DisplayErrorContext
, use another
error reporter library that visits the error’s cause/source chain, or call
Error::source
for more details about the underlying cause.