Failure
Resolution failed. Every variant carries a non-null DidResolutionMetadata.error, enforced by each variant's own init block (§4).
The check lives on each subtype rather than once here on Failure itself: Failure has no property of its own for resolutionMetadata — each subtype declares it independently as a data class constructor property — and a base-class init block runs before a derived data class's own constructor properties are assigned, so it would observe an uninitialized value if it tried to read an override from here instead.
Inheritors
Types
§4.4 step 1: the input does not conform to the DID syntax.
§4.4 step 2: the DID method is not supported by this resolver.
§4.4: the DID does not exist.
§4.4 steps 3 and 4: a resolution option is unsupported or invalid, or the requested representation is not supported.
§4.4 final step: an unexpected error during resolution.
Properties
§4.3 document metadata; empty for failed resolutions, as §4 requires.
The resolved document, or null for deactivated and failed resolutions (§4).
The RFC 9457 error object, or null when resolution did not fail.
Human-readable failure text, or null when resolution did not fail.
The error type URI, or null when resolution did not fail.
True when resolution failed with an error. Deactivation is NOT an error.
True when the DID exists but is deactivated (§4.4).
True when the DID could not be found.
True when the DID resolved to a document.
§4.2 resolution metadata for any outcome.
Functions
Returns the resolved DidDocument or throws.