pub enum Error {
Show 22 variants
Core(Error),
Validation(String),
DidResolution(String),
InvalidDID,
UnsupportedDIDMethod(String),
FailedToAcquireResolverReadLock,
FailedToAcquireResolverWriteLock,
MissingConfig(String),
Crypto(String),
Cryptography(String),
Message(String),
Policy(String),
Storage(String),
Io(Error),
Serialization(String),
NotImplemented(String),
KeyNotFound(String),
DIDComm(String),
DIDResolution(String),
SerdeError(Error),
Networking(String),
Runtime(String),
}Expand description
Error types for TAP Agent
Variants§
Core(Error)
Core TAP errors
Validation(String)
Validation errors
DidResolution(String)
DID resolution errors
InvalidDID
Error related to invalid DID
UnsupportedDIDMethod(String)
Error for unsupported DID method
FailedToAcquireResolverReadLock
Error when failed to acquire resolver read lock
FailedToAcquireResolverWriteLock
Error when failed to acquire resolver write lock
MissingConfig(String)
Error related to missing configuration
Crypto(String)
Error related to cryptographic operations
Cryptography(String)
Error related to cryptographic operations during signing/encryption
Message(String)
Error related to message processing
Policy(String)
Error related to policy evaluation
Storage(String)
Error related to storage
Io(Error)
IO errors
Serialization(String)
Serialization errors
NotImplemented(String)
Feature not implemented
KeyNotFound(String)
Key not found
DIDComm(String)
DIDComm specific errors
DIDResolution(String)
DID Resolution error
SerdeError(Error)
Serde JSON error
Networking(String)
Networking error
Runtime(String)
Runtime error
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<AgentKeyError> for Error
impl From<AgentKeyError> for Error
Source§fn from(err: AgentKeyError) -> Self
fn from(err: AgentKeyError) -> Self
Converts to this type from the input type.
Source§impl From<MessageError> for Error
impl From<MessageError> for Error
Source§fn from(err: MessageError) -> Self
fn from(err: MessageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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