Class: DIDResolutionError
Defined in: src/auth/errors.ts:264
DID resolution error.
Remarks
Thrown when DID resolution fails. HTTP mapping: 400 Bad Request or 502 Bad Gateway
Extends
Constructors
new DIDResolutionError()
new DIDResolutionError(
did,resolutionError,message,cause?):DIDResolutionError
Defined in: src/auth/errors.ts:285
Creates a new DIDResolutionError.
Parameters
did
string
DID that failed
resolutionError
Specific error type
"timeout" | "invalid_format" | "not_found" | "network_error"
message
string
Error message
cause?
Error
Original error
Returns
Overrides
Properties
cause?
readonlyoptionalcause:Error
Defined in: src/types/errors.ts:71
Original error that caused this error (if any).
Remarks
Error chaining allows tracking the full error context through multiple layers of the application. Useful for debugging complex error scenarios.
Example
try {
await fetchData();
} catch (err) {
throw new ValidationError('Failed to validate data', 'field', 'required', err as Error);
}
Inherited from
code
readonlycode:"DID_RESOLUTION_ERROR"='DID_RESOLUTION_ERROR'
Defined in: src/auth/errors.ts:265
Machine-readable error code.
Remarks
Error codes are unique identifiers for error types, enabling programmatic error handling (switch statements, error maps), error tracking in monitoring systems, and client-side error translation (i18n).
Overrides
did
readonlydid:string
Defined in: src/auth/errors.ts:270
DID that failed to resolve.
resolutionError
readonlyresolutionError:"timeout"|"invalid_format"|"not_found"|"network_error"
Defined in: src/auth/errors.ts:275
Specific resolution error.