Documentation
    Preparing search index...

    Interface UserErrorOptions

    Options for the UserError class.

    interface UserErrorOptions {
        cause?: unknown;
        code?: string;
        metadata?: unknown;
    }

    Hierarchy

    • ErrorOptions
      • UserErrorOptions
    Index

    Properties

    cause?: unknown
    code?: string

    Machine readable code for this error. Useful for catching different types of errors in try-catch.

    metadata?: unknown

    Additional metadata related to the error. Useful for understanding context about the error.