pub enum CliError {
A2A(A2AError),
Http(Error),
Json(Error),
InvalidInput(String),
ReadFile {
path: String,
source: Error,
},
Timeout {
task_id: String,
timeout: Duration,
},
CardFile {
path: String,
source: Error,
},
CardInvalid(String),
CardSchemaInvalid {
violations: Vec<Violation>,
},
Usage(String),
}Variants§
A2A(A2AError)
Http(Error)
Json(Error)
InvalidInput(String)
ReadFile
Timeout
CardFile
A local Agent Card file that couldn’t be read — the file-path counterpart of a non-2xx card fetch.
CardInvalid(String)
A local Agent Card file that was read but isn’t an Agent Card — the counterpart of a response body that won’t deserialize.
CardSchemaInvalid
card get --validate: the card deserialized fine (so CardInvalid
does not apply) but fails the A2A JSON schema (§10.1) — distinct
from a type-check failure, and carrying every violation rather than
only the first.
Usage(String)
A malformed invocation, as clap describes it. §11.4 counts a malformed flag among the CLI-local failures that must still be machine-readable, so clap’s prose becomes the envelope’s message rather than being printed in its place.
Implementations§
Trait Implementations§
Source§impl Error for CliError
impl Error for CliError
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 CliError
impl !UnwindSafe for CliError
impl Freeze for CliError
impl Send for CliError
impl Sync for CliError
impl Unpin for CliError
impl UnsafeUnpin for CliError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.