#[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,
},
}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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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)>
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()
Auto Trait Implementations§
impl !RefUnwindSafe for A2aError
impl !UnwindSafe for A2aError
impl Forget for A2aError
impl Freeze for A2aError
impl Send for A2aError
impl Sync for A2aError
impl Unpin for A2aError
impl UnsafeUnpin for A2aError
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