Clov Packages
    Preparing search index...

    Interface ExceptionOptions<TCause>

    Options accepted by the Exception constructor.

    interface ExceptionOptions<TCause = unknown> {
        cause?: TCause;
        code?: string;
    }

    Type Parameters

    • TCause = unknown

      Type of the underlying cause, kept as-is for debugging.

    Hierarchy (View Summary)

    Index
    cause?: TCause

    Original error or contextual value that triggered this exception.

    code?: string

    Application-specific error code (e.g. 'jwt.token.expired').