#[non_exhaustive]pub enum GatewayError {
CallerOrgNotAllowed(String),
SkillNotAllowed(String),
PayloadTooLarge {
actual: usize,
max: usize,
},
MissingCaller,
ContractUnsatisfied(String),
NoRoute(String),
Client(A2AError),
}Expand description
Errors raised by the federation gateway.
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.
CallerOrgNotAllowed(String)
The caller’s org is not on the allow-list.
SkillNotAllowed(String)
The requested skill is not on the allow-list.
PayloadTooLarge
The inbound request body exceeds the configured limit.
Fields
MissingCaller
The request carried no caller identity, so it cannot be authorized.
ContractUnsatisfied(String)
The downstream agent’s card does not satisfy the data contract.
NoRoute(String)
No downstream route is registered for the requested key.
Client(A2AError)
A downstream A2A call failed.
Trait Implementations§
Source§impl Debug for GatewayError
impl Debug for GatewayError
Source§impl Display for GatewayError
impl Display for GatewayError
Source§impl Error for GatewayError
impl Error for GatewayError
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 Freeze for GatewayError
impl RefUnwindSafe for GatewayError
impl Send for GatewayError
impl Sync for GatewayError
impl Unpin for GatewayError
impl UnsafeUnpin for GatewayError
impl UnwindSafe for GatewayError
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