systemprompt_models/paths/
error.rs1use std::path::PathBuf;
2use thiserror::Error;
3
4#[derive(Debug, Error)]
5pub enum PathError {
6 #[error("Required path not configured: {field}")]
7 NotConfigured { field: &'static str },
8
9 #[error("Path does not exist: {}", path.display())]
10 NotFound { path: PathBuf, field: &'static str },
11
12 #[error("Failed to canonicalize path {}: {source}", path.display())]
13 CanonicalizeFailed {
14 path: PathBuf,
15 field: &'static str,
16 #[source]
17 source: std::io::Error,
18 },
19
20 #[error("Binary not found: {name} (searched: {searched:?})")]
21 BinaryNotFound {
22 name: String,
23 searched: Vec<PathBuf>,
24 },
25}