15 lines
370 B
Rust
15 lines
370 B
Rust
use thiserror::Error;
|
|
|
|
#[derive(Debug, Error, PartialEq)]
|
|
pub enum FunctionCallError {
|
|
#[error("{0}")]
|
|
RespondToModel(String),
|
|
#[error("{0}")]
|
|
#[allow(dead_code)] // TODO(jif) fix in a follow-up PR
|
|
Denied(String),
|
|
#[error("LocalShellCall without call_id or id")]
|
|
MissingLocalShellCallId,
|
|
#[error("Fatal error: {0}")]
|
|
Fatal(String),
|
|
}
|