pub enum ConfigError {
Read {
path: PathBuf,
source: Error,
},
Parse {
path: PathBuf,
problem: &'static str,
line: usize,
column: usize,
},
NoSchema {
path: PathBuf,
},
UnsupportedSchema {
path: PathBuf,
schema: u32,
},
Invalid {
path: PathBuf,
key: &'static str,
reason: String,
},
WorkspaceBaseUrl {
path: PathBuf,
},
}Expand description
Why a config file could not be used.
These messages travel — into basis spawn --json, into an ACP client’s
error pane — and they follow
McpError’s rule
even though nothing here is meant to hold a credential: ${VAR} expansion
resolves real values before validation, so an error names the file, the
key, and an environment variable, and nothing else it read. That is also
why Parse carries a location and a category instead of
serde’s own message, which quotes the value it choked on.
Variants§
Read
Parse
NoSchema
UnsupportedSchema
Invalid
WorkspaceBaseUrl
The refusal the module docs argue for: a committed file may not redirect the traffic that carries the user’s credential.
Trait Implementations§
Source§impl Debug for ConfigError
impl Debug for ConfigError
Source§impl Display for ConfigError
impl Display for ConfigError
Source§impl Error for ConfigError
impl Error for ConfigError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ConfigError> for RunError
impl From<ConfigError> for RunError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ConfigError
impl !UnwindSafe for ConfigError
impl Freeze for ConfigError
impl Send for ConfigError
impl Sync for ConfigError
impl Unpin for ConfigError
impl UnsafeUnpin for ConfigError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more