oxilean_kernel/env/
enverror_traits.rs1use super::types::EnvError;
13
14impl std::fmt::Display for EnvError {
15 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
16 match self {
17 EnvError::DuplicateDeclaration(name) => {
18 write!(f, "duplicate declaration: {}", name)
19 }
20 EnvError::NotFound(name) => write!(f, "declaration not found: {}", name),
21 EnvError::InvalidQuotient(msg) => write!(f, "invalid quotient: {}", msg),
22 }
23 }
24}
25
26impl std::error::Error for EnvError {}