pub enum AAPError {
Validation {
field: String,
message: String,
},
Signature(String),
PhysicalWorldViolation {
agent_id: String,
},
Scope {
action: String,
agent_id: String,
},
Revocation {
id: String,
},
Chain {
entry_id: String,
},
Serde(Error),
}Expand description
All AAP errors implement this trait.
Variants§
Validation
AAP-001: Schema validation failed.
Signature(String)
AAP-002: Ed25519 signature verification failed.
PhysicalWorldViolation
AAP-003: Physical World Rule — Level 4 forbidden for physical nodes.
Scope
AAP-004: Action is outside the agent’s authorized scope.
Revocation
AAP-005: Identity or authorization has been revoked.
Chain
AAP-006: Audit chain integrity broken.
Serde(Error)
Serialization error (internal).
Trait Implementations§
Source§impl Error for AAPError
impl Error for AAPError
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 AAPError
impl !RefUnwindSafe for AAPError
impl Send for AAPError
impl Sync for AAPError
impl Unpin for AAPError
impl UnsafeUnpin for AAPError
impl !UnwindSafe for AAPError
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