pub enum WebVHDIDError {
Show 26 variants
InvalidDIDPrefix,
MissingSCID,
MissingHostname,
HttpRequestFailed {
url: String,
error: Error,
},
LogEntryParseFailed {
line: usize,
details: String,
},
EmptyLog,
InvalidVersionId {
entry: usize,
details: String,
},
VersionTimeNotMonotonic {
entry: usize,
},
SCIDVerificationFailed,
EntryHashVerificationFailed {
entry: usize,
},
ProofVerificationFailed {
entry: usize,
details: String,
},
PreRotationKeyMismatch {
entry: usize,
},
InvalidParameters {
entry: usize,
details: String,
},
WitnessVerificationFailed {
entry: usize,
details: String,
},
DocumentExtractionFailed {
details: String,
},
InvalidSCIDFormat {
details: String,
},
DeactivatedDID {
did: String,
},
VersionNotFound {
details: String,
},
VersionTimeInFuture {
entry: usize,
version_time: String,
},
DIDDocIdMismatch {
entry: usize,
expected: String,
found: String,
},
UnsupportedHashAlgorithm {
details: String,
},
UnknownParameter {
entry: usize,
parameter: String,
},
HostnameNormalizationFailed {
details: String,
},
GenesisCreationFailed {
details: String,
},
UpdateCreationFailed {
details: String,
},
SigningFailed {
details: String,
},
}Expand description
Error types that can occur when working with WebVH DIDs
Variants§
InvalidDIDPrefix
Occurs when the DID is missing the ‘did:webvh:’ prefix
MissingSCID
Occurs when the DID is missing a SCID component
MissingHostname
Occurs when the DID is missing a hostname component
HttpRequestFailed
Occurs when the HTTP request to fetch the DID log fails
LogEntryParseFailed
Occurs when a log entry cannot be parsed from the JSONL response
Fields
EmptyLog
Occurs when the DID log file is empty
InvalidVersionId
Occurs when a version ID is invalid or has incorrect format
Fields
VersionTimeNotMonotonic
Occurs when version times are not monotonically increasing
SCIDVerificationFailed
Occurs when the SCID does not match the computed value from the genesis entry
EntryHashVerificationFailed
Occurs when an entry’s hash does not match the expected value in the version ID
ProofVerificationFailed
Occurs when a Data Integrity proof cannot be verified
Fields
PreRotationKeyMismatch
Occurs when pre-rotation key hashes do not match
InvalidParameters
Occurs when log entry parameters are invalid
Fields
WitnessVerificationFailed
Occurs when witness verification fails
Fields
DocumentExtractionFailed
Occurs when the DID document cannot be extracted from the log state
InvalidSCIDFormat
Occurs when the SCID format is invalid
DeactivatedDID
Occurs when the resolved DID has been deactivated
VersionNotFound
Occurs when a requested version is not found in the log
VersionTimeInFuture
Occurs when a version time is in the future
Fields
DIDDocIdMismatch
Occurs when the DIDDoc id does not match the DID
Fields
UnsupportedHashAlgorithm
Occurs when the hash algorithm in the SCID is not supported
UnknownParameter
Occurs when an unknown parameter is found in a log entry
Fields
HostnameNormalizationFailed
Occurs when hostname normalization fails
GenesisCreationFailed
Occurs when genesis document creation fails
UpdateCreationFailed
Occurs when update entry creation fails
SigningFailed
Occurs when signing a log entry fails
Implementations§
Source§impl WebVHDIDError
impl WebVHDIDError
Sourcepub fn to_resolution_error(&self) -> ResolutionError
pub fn to_resolution_error(&self) -> ResolutionError
Converts this error to a spec-compliant resolution error.
Trait Implementations§
Source§impl Debug for WebVHDIDError
impl Debug for WebVHDIDError
Source§impl Display for WebVHDIDError
impl Display for WebVHDIDError
Source§impl Error for WebVHDIDError
impl Error for WebVHDIDError
1.30.0 · 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()
Auto Trait Implementations§
impl !RefUnwindSafe for WebVHDIDError
impl !UnwindSafe for WebVHDIDError
impl Freeze for WebVHDIDError
impl Send for WebVHDIDError
impl Sync for WebVHDIDError
impl Unpin for WebVHDIDError
impl UnsafeUnpin for WebVHDIDError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.