Enum identity_core::error::Error
source · pub enum Error {
Show 16 variants
Crypto(Error),
EncodeJSON(Error),
DecodeJSON(Error),
DecodeBase(Base, Error),
DecodeMultibase(Error),
InvalidDiff(Error),
InvalidUrl(ParseError),
InvalidTimestamp(Error),
OneOrSetEmpty,
OrderedSetDuplicate,
InvalidProofPurpose,
InvalidProofValue(&'static str),
InvalidKeyFormat,
InvalidKeyLength(usize, usize),
InvalidSigLength(usize, usize),
MissingSignature,
}
Expand description
This type represents all possible errors that can occur in the library.
Variants§
Crypto(Error)
Caused when a cryptographic operation fails.
EncodeJSON(Error)
Caused by a failure to encode Rust types as JSON.
DecodeJSON(Error)
Caused by a failure to decode Rust types from JSON.
DecodeBase(Base, Error)
Caused by a failure to decode base-encoded data.
DecodeMultibase(Error)
Caused by a failure to decode multibase-encoded data.
InvalidDiff(Error)
Caused by attempting to perform an invalid Diff
operation.
InvalidUrl(ParseError)
Caused by attempting to parse an invalid Url
.
InvalidTimestamp(Error)
Caused by attempting to parse an invalid Timestamp
.
OneOrSetEmpty
Caused by attempting to create an empty OneOrSet
instance or remove all its elements.
OrderedSetDuplicate
Caused by attempting to convert a collection with duplicate keys into an OrderedSet.
InvalidProofPurpose
Caused by attempting to parse an invalid ProofPurpose
.
InvalidProofValue(&'static str)
Raised by a validation attempt against an invalid DID proof.
InvalidKeyFormat
Caused by attempting to parse an invalid cryptographic key.
InvalidKeyLength(usize, usize)
Caused byt attempting to parse as invalid cryptographic key.
InvalidSigLength(usize, usize)
Caused byt attempting to parse as invalid digital signature.
MissingSignature
Caused by a failed attempt at retrieving a digital signature.