Class ArgumentError<T>

    The ValueError object represents an error with a specific argument provided.

    Only returns from methods that check for specific errors.

    Type Parameters

    • T

      The type of the argument value provided.

    Hierarchy
    • Error
      • ArgumentError

    Properties

    argumentName: string

    The name of the argument with an invalid value.

    cause?: unknown
    message: string
    name: string
    stack?: string
    value: T

    The value of the invalid argument.

    prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

    Optional override for formatting stack traces

    stackTraceLimit: number

    Methods

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • OptionalconstructorOpt: Function

      Returns void

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • OptionalconstructorOpt: Function

      Returns void