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,
},
BackendValidation {
backend: String,
source: ValidationError,
},
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
BackendValidation
Backend returned an answer that violates the request contract. Mapped to HTTP 500.
Fields
source: ValidationErrorOriginal request-bound validation failure.
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()