Class ArgumentOutOfRangeException<Value>

Thrown when a method is called with at least one argument that isn't null and contains an invalid value that doesn't belong to the expected range of values for the argument.

Type Parameters

  • Value

Hierarchy (view full)

Constructors

Properties

actualValue: Value

Identifies the invalid value.

cause?: unknown
message: string

Details of the exception.

metadata?: unknown
name: string
paramName: PropertyKey

The parameter that caused this exception.

stack?: string
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