pub enum PredictError {
InternalServer(String),
InvalidInput(String),
LimitExceeded(String),
PredictorNotMounted(String),
ResourceNotFound(String),
}
Expand description
Errors returned by Predict
Variants§
InternalServer(String)
An error on the server occurred when trying to process a request.
InvalidInput(String)
An error on the client occurred. Typically, the cause is an invalid input value.
LimitExceeded(String)
The subscriber exceeded the maximum number of operations. This exception can occur when listing objects such as DataSource
.
PredictorNotMounted(String)
The exception is thrown when a predict request is made to an unmounted MLModel
.
ResourceNotFound(String)
A specified resource cannot be located.
Implementations§
Source§impl PredictError
impl PredictError
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<PredictError>
Trait Implementations§
Source§impl Debug for PredictError
impl Debug for PredictError
Source§impl Display for PredictError
impl Display for PredictError
Source§impl Error for PredictError
impl Error for PredictError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for PredictError
impl PartialEq for PredictError
impl StructuralPartialEq for PredictError
Auto Trait Implementations§
impl Freeze for PredictError
impl RefUnwindSafe for PredictError
impl Send for PredictError
impl Sync for PredictError
impl Unpin for PredictError
impl UnwindSafe for PredictError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more