pub enum EngineError {
Invalid(ValidationError),
UnknownModel(String),
Unsupported {
backend: String,
message: String,
},
Overloaded {
backend: String,
retry_after_ms: u64,
},
DeadlineExceeded {
backend: String,
timeout_ms: u64,
},
Backend {
backend: String,
message: String,
},
}Expand description
Errors that can occur during engine execution or model dispatch.
These errors are translated into corresponding HTTP/gRPC status codes by the API layer.
Variants§
Invalid(ValidationError)
Request body failed schema validation. Mapped to HTTP 422 Unprocessable Entity.
UnknownModel(String)
Requested model alias is not registered. Mapped to HTTP 404 Not Found.
Unsupported
Request is valid Jev but unsupported by the selected backend profile. Mapped to HTTP 422.
Fields
Overloaded
Backend admission queue is full. Mapped to HTTP 529 / gRPC unavailable.
Fields
DeadlineExceeded
Queue-inclusive evaluation deadline elapsed. Mapped to HTTP 504 / gRPC deadline exceeded.
Fields
Backend
Underlying backend driver encountered an internal execution failure. Mapped to HTTP 500.
Trait Implementations§
Source§impl Debug for EngineError
impl Debug for EngineError
Source§impl Display for EngineError
impl Display for EngineError
Source§impl Error for EngineError
impl Error for EngineError
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 From<ValidationError> for EngineError
impl From<ValidationError> for EngineError
Source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EngineError
impl RefUnwindSafe for EngineError
impl Send for EngineError
impl Sync for EngineError
impl Unpin for EngineError
impl UnsafeUnpin for EngineError
impl UnwindSafe for EngineError
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