sllm/error.rs
1use std::string::FromUtf8Error;
2
3#[derive(thiserror::Error, Debug)]
4pub enum Error {
5 #[error(transparent)]
6 IOError(#[from] std::io::Error),
7 #[error(transparent)]
8 Utf8Error(#[from] FromUtf8Error),
9
10 #[error("Request error {0}")]
11 RequestError(String),
12 #[error(transparent)]
13 TeraError(#[from] tera::Error),
14 #[error(transparent)]
15 JSONParsingError(#[from] serde_json::Error), // #[error(transparent)]
16 // RequestError(#[from] ureq::Error),
17}