类 InvalidArgumentError

Specifies that a passed-in argument to a method is not correct or allowed.

层级

  • Error
    • InvalidArgumentError

属性

index: number

Index of the argument that is in error.

message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

方法

  • Create .stack property on a target object

    参数

    • targetObject: object
    • 可选constructorOpt: Function

    返回 void