llama_cpp_wrapper_sources/
wrapper_sources_error.rs1use std::path::PathBuf;
2
3#[derive(Debug, thiserror::Error)]
4pub enum WrapperSourcesError {
5 #[error("required command line argument <{name}> is missing")]
6 MissingArgument { name: &'static str },
7 #[error("compilation database file {path} could not be created")]
8 Create {
9 path: PathBuf,
10 #[source]
11 source: std::io::Error,
12 },
13 #[error("wrapper source list could not be written to {path}")]
14 Write {
15 path: PathBuf,
16 #[source]
17 source: std::io::Error,
18 },
19 #[error("compilation database could not be written to {path}")]
20 Serialize {
21 path: PathBuf,
22 #[source]
23 source: serde_json::Error,
24 },
25}