pub enum JcsError {
DuplicateKey {
key: String,
},
InvalidJson {
reason: String,
},
ParseError(Error),
SchemaValidation(String),
SchemaError(String),
DigestError(String),
InvalidProfile {
reason: String,
},
ResourceCeilingExceeded {
resource: String,
used: usize,
limit: usize,
},
}Expand description
Errors that can occur during JCS canonicalization or boundary profile processing.
Variants§
DuplicateKey
Duplicate object key encountered (violates RFC 8785 §2.7).
InvalidJson
Invalid JSON structure during canonicalization.
ParseError(Error)
JSON lexer/syntax error.
SchemaValidation(String)
Schema validation failed.
SchemaError(String)
JSON Schema initialization error.
DigestError(String)
ContentDigest computation error.
InvalidProfile
Invalid profile configuration.
ResourceCeilingExceeded
Resource ceiling exceeded.
Trait Implementations§
Source§impl Error for JcsError
impl Error for JcsError
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 JcsError
impl !RefUnwindSafe for JcsError
impl Send for JcsError
impl Sync for JcsError
impl Unpin for JcsError
impl UnsafeUnpin for JcsError
impl !UnwindSafe for JcsError
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