FuncType - v0.9.5
    Preparing search index...

    Interface TypedError<T>

    Type-safe error class with template literal types

    interface TypedError<T extends ErrorCode> {
        _tag: "Throwable";
        cause?: Error;
        code: T;
        context: TypedErrorContext<T>;
        data?: unknown;
        message: ErrorMessage<T>;
        status: ErrorStatus<T>;
        taskInfo?: { description: string; name: string };
        timestamp: string;
        traceId?: string;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    _tag: "Throwable" = NAME
    cause?: Error
    code: T
    data?: unknown
    message: ErrorMessage<T>
    status: ErrorStatus<T>
    taskInfo?: { description: string; name: string }
    timestamp: string
    traceId?: string