Interface ErrorCodeDetailOptions<T>

Options for initializing an error with code and detail.

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

Type Parameters

  • T

Hierarchy

Properties

Properties

cause?: unknown
code?: string

Error code.

detail?: T

Error details.

Generated using TypeDoc