pub enum Web4Error {
Show 13 variants
Crypto(String),
SignatureInvalid(String),
Lct(String),
CoherenceBelowThreshold {
score: f64,
threshold: f64,
},
Serialization(Error),
InvalidInput(String),
NotFound(String),
Unauthorized(String),
LctVoided(String),
InvalidState(String),
Ledger(String),
Vault(String),
DecryptionFailed,
}Expand description
Primary error type for web4-core operations
Variants§
Crypto(String)
Cryptographic operation failed
SignatureInvalid(String)
Signature verification failed
Lct(String)
LCT-related error
CoherenceBelowThreshold
Identity coherence below threshold
Serialization(Error)
Serialization/deserialization error
InvalidInput(String)
Invalid input provided
NotFound(String)
Entity not found
Operation not authorized
LctVoided(String)
LCT has been voided or slashed
InvalidState(String)
Invalid state transition
Ledger(String)
Ledger operation failed (mint, lookup, anchor, verify)
Vault(String)
Vault storage error (corrupt file, wrong magic/version, IO)
DecryptionFailed
Decryption failed — wrong passphrase/credential or tampered ciphertext
Trait Implementations§
Source§impl Error for Web4Error
impl Error for Web4Error
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 Web4Error
impl !UnwindSafe for Web4Error
impl Freeze for Web4Error
impl Send for Web4Error
impl Sync for Web4Error
impl Unpin for Web4Error
impl UnsafeUnpin for Web4Error
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