qgw
    Preparing search index...

    Interface ErrorOptions<C>

    The options for the CustomError class.

    interface ErrorOptions<C extends string> {
        code?: C;
        issues: CustomIssue[];
        message: string;
    }

    Type Parameters

    • C extends string
    Index

    Properties

    Properties

    code?: C

    the custom error code.

    issues: CustomIssue[]

    specific information regarding the error that occurred.

    message: string

    a human readable display for what error our library caught.