pub enum IpexError {
NotAnObject,
WrongIlk(String),
WrongRoute {
expected: &'static str,
found: String,
},
MissingField {
field: &'static str,
},
MissingPrior,
Prefix {
field: &'static str,
source: KeriTypeError,
},
SaidMismatch {
computed: String,
found: String,
},
Acdc(AcdcError),
Record(KeriTranslationError),
}Expand description
Errors raised while building or parsing an IPEX exn.
Variants§
NotAnObject
The record was not a JSON object.
WrongIlk(String)
The record’s ilk (t) was not exn.
WrongRoute
The record’s route (r) was not the expected IPEX route.
Fields
MissingField
A required field was absent.
MissingPrior
An admit carried no prior grant SAID, so it threads no exchange.
Prefix
A prefix/SAID field was not a CESR-valid value.
Fields
§
source: KeriTypeErrorThe underlying CESR/derivation-code error.
SaidMismatch
The carried d SAID did not match the one recomputed from the record.
Fields
Acdc(AcdcError)
The embedded ACDC failed to build/verify.
Record(KeriTranslationError)
A wire record failed to saidify/serialize.
Trait Implementations§
Source§impl Error for IpexError
impl Error for IpexError
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()
Source§impl From<KeriTranslationError> for IpexError
impl From<KeriTranslationError> for IpexError
Source§fn from(source: KeriTranslationError) -> Self
fn from(source: KeriTranslationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for IpexError
impl !UnwindSafe for IpexError
impl Freeze for IpexError
impl Send for IpexError
impl Sync for IpexError
impl Unpin for IpexError
impl UnsafeUnpin for IpexError
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