Enum identity_did::error::Error
source · pub enum Error {
Show 19 variants
CoreError(Error),
InvalidDID(DIDError),
MethodNotFound,
InvalidDocument(&'static str, Option<Error>),
InvalidService(&'static str),
InvalidMethod(&'static str),
MissingIdFragment,
InvalidMethodType,
MethodAlreadyExists,
InvalidMethodEmbedded,
UnknownMethodScope,
UnknownMethodType,
InvalidKeyData,
InvalidKeyDataBase58,
InvalidKeyDataMultibase,
InvalidSignature(&'static str),
Base64DecodingError(String, Error),
BitmapDecodingError(Error),
BitmapEncodingError(Error),
}
Expand description
This type represents all possible errors that can occur in the library.
Variants§
CoreError(Error)
Caused by errors from the identity_core crate.
InvalidDID(DIDError)
MethodNotFound
InvalidDocument(&'static str, Option<Error>)
Caused by invalid or missing properties when constructing a CoreDocument
.
InvalidService(&'static str)
Caused by invalid or missing properties when constructing a Service
.
InvalidMethod(&'static str)
Caused by invalid or missing properties when constructing a
VerificationMethod
.
MissingIdFragment
InvalidMethodType
MethodAlreadyExists
Caused by attempting to add a verification method to a document, where a method with the same fragment already exists.
InvalidMethodEmbedded
Caused by attempting to attach or detach a relationship on an embedded method.
UnknownMethodScope
UnknownMethodType
InvalidKeyData
InvalidKeyDataBase58
InvalidKeyDataMultibase
InvalidSignature(&'static str)
Base64DecodingError(String, Error)
BitmapDecodingError(Error)
BitmapEncodingError(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)>
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()