#[non_exhaustive]pub enum A2aError {
Read {
path: PathBuf,
source: Error,
},
Parse {
path: PathBuf,
problem: &'static str,
line: usize,
column: usize,
},
NoAgents {
path: PathBuf,
},
Invalid {
origin: String,
name: String,
reason: String,
},
Forget {
path: PathBuf,
source: Error,
},
}Expand description
Anything that can go wrong turning configuration into agents.
McpError’s rule, for its reason: these messages
travel into basis spawn --json, an ACP client’s error pane and whatever a
host logs, and a headers value is a credential — already expanded by the
time it could be repeated. A message may name the file, the agent, the
field, a header’s name and an environment variable, and nothing else it
read. Parse keeps a location and a category instead of
serde’s own message, which quotes the value it choked on; an unknown key is
therefore reported as a place in the file rather than as the word that was
wrong.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Read
Parse
NoAgents
Invalid
Forget
A forgotten conversation’s record of the remote work it handed off
could not be removed (crate::store::forget).
Trait Implementations§
Source§impl Error for A2aError
impl Error for A2aError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()