/** * Generic class for all the errors related to the DID resolution. * @see https://www.w3.org/TR/did-core/#did-resolution-metadata */ export class DidResolutionError extends Error { public code: string; constructor(code: string, message: string) { super(message); this.name = "DIDResolutionError"; this.code = code; } }