pub enum DTGCredentialError {
UnknownCredential,
DataIntegrity(DataIntegrityError),
NotSigned,
UnknownVCVersion,
EmptyAuthorityActions,
NotAnAuthorityCredential,
AttenuationParentHasNoId,
AttenuationWidens(String),
MissingTaskContext,
Canonicalization(String),
WrongCredentialType {
expected: String,
got: String,
},
NotAMembershipGrant(String),
}Expand description
Errors related to DTG Credentials
Variants§
UnknownCredential
DataIntegrity(DataIntegrityError)
NotSigned
UnknownVCVersion
EmptyAuthorityActions
An AuthorityCredential (VAC) carried an empty actions list.
Emptiness is never a wildcard: a VAC conferring no actions confers nothing, and is rejected rather than treated as unrestricted.
NotAnAuthorityCredential
DTGCredential::attenuate was called on a credential that is not a VAC.
AttenuationParentHasNoId
DTGCredential::attenuate was called on a VAC with no id.
A derived credential points at its parent by id; a parent without one cannot be
pointed at, so the chain could never be verified. Set one with
DTGCredential::with_id before attenuating.
AttenuationWidens(String)
An attenuation attempted to confer more than its parent held.
MissingTaskContext
A WitnessCredential (VWC) was missing the REQUIRED taskContext property
Canonicalization(String)
The credential could not be canonicalized (JCS, RFC 8785) for digesting
WrongCredentialType
A credential was not of the type an operation requires
NotAMembershipGrant(String)
A membership acknowledgement was built against something that is not a community-issued membership grant
Trait Implementations§
Source§impl Debug for DTGCredentialError
impl Debug for DTGCredentialError
Source§impl Display for DTGCredentialError
impl Display for DTGCredentialError
Source§impl Error for DTGCredentialError
impl Error for DTGCredentialError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()