Skip to main content

agent_ask/
error.rs

1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum Error {
5    #[error("invalid: {0}")]
6    Invalid(String),
7
8    #[error("schema: {0}")]
9    Schema(String),
10
11    #[error("signature: {0}")]
12    Signature(String),
13
14    #[error("io: {0}")]
15    Io(#[from] std::io::Error),
16
17    #[error("json: {0}")]
18    Json(#[from] serde_json::Error),
19
20    #[error("sqlite: {0}")]
21    Sqlite(#[from] rusqlite::Error),
22
23    #[error("http: {0}")]
24    Http(String),
25}