The exception that is thrown when one of the arguments provided to a method is not valid.

Hierarchy

Constructors

  • Creates a new Argument Exception

    Parameters

    • argumentName: string

      the name of the argument that is invalid

    • Optional message: string

      the message

    • Optional innerException: default

      this is used to capture any exceptions that were called before this exception.

    Returns default

Properties

#innerException?: default
__proto__: Error
cause?: unknown
message: string
name: string
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number

Accessors

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc