Interface CodedErrorOptions<T>

Options for initializing a CodedError.

interface CodedErrorOptions {
    cause?: unknown;
    code?: string;
    detail?: T;
    name?: string;
}

Type Parameters

  • T

Hierarchy

Properties

cause?: unknown
code?: string

Error code.

detail?: T

Error details.

name?: string

Error name.

Generated using TypeDoc