DWS Packages
    Preparing search index...

    Interface ExceptionOptions<TCause>

    Options accepted by the Exception constructor.

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

    Type Parameters

    • TCause = unknown

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

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    cause?: TCause

    Original error or contextual value that triggered this exception.

    key?: string

    Application-specific error key (e.g. 'auth.tokenExpired').