(server) expose new SchedulingError

This commit is contained in:
Morgan Funtowicz 2024-08-01 11:59:14 +00:00 committed by Morgan Funtowicz
parent 0cd7538a48
commit 169e1f452f
1 changed files with 3 additions and 0 deletions

View File

@ -357,6 +357,8 @@ pub enum InferError {
ToolError(String),
#[error("Stream event serialization error")]
StreamSerializationError(String),
#[error("Scheduling error: {0}")]
SchedulingError(String),
}
impl InferError {
@ -371,6 +373,7 @@ impl InferError {
InferError::MissingTemplateVariable(_) => "missing_template_variable",
InferError::ToolError(_) => "tool_error",
InferError::StreamSerializationError(_) => "stream_serialization_error",
InferError::SchedulingError(_) => "schedling"
}
}
}