ResolutionError

data class ResolutionError(val did: Did, val reason: String, val cause: Throwable? = null, val resolutionMetadata: DidResolutionMetadata = DidResolutionMetadata( error = DidResolutionError.internalError(reason), )) : DidResolutionResult.Failure

§4.4 final step: an unexpected error during resolution.

Constructors

Link copied to clipboard
constructor(did: Did, reason: String, cause: Throwable? = null, resolutionMetadata: DidResolutionMetadata = DidResolutionMetadata( error = DidResolutionError.internalError(reason), ))

Properties

Link copied to clipboard
Link copied to clipboard
val did: Did
Link copied to clipboard

§4.3 document metadata; empty for failed resolutions, as §4 requires.

Link copied to clipboard

The resolved document, or null for deactivated and failed resolutions (§4).

Link copied to clipboard

The RFC 9457 error object, or null when resolution did not fail.

Link copied to clipboard

Human-readable failure text, or null when resolution did not fail.

Link copied to clipboard

The error type URI, or null when resolution did not fail.

Link copied to clipboard

True when resolution failed with an error. Deactivation is NOT an error.

Link copied to clipboard

True when the DID exists but is deactivated (§4.4).

Link copied to clipboard

True when the DID could not be found.

Link copied to clipboard

True when the DID resolved to a document.

Link copied to clipboard
Link copied to clipboard

§4.2 resolution metadata for any outcome.

Functions

Link copied to clipboard

Returns the resolved DidDocument or throws.