Options
All
  • Public
  • Public/Protected
  • All
Menu

An error that is thrown when one of the arguments provided to a method is not valid.

Hierarchy

Index

Constructors

Properties

Constructors

constructor

  • new ArgumentError(parameter: string, message?: string): ArgumentError
  • Initializes a new instance of the ArgumentError class.

    Parameters

    • parameter: string

      The name of the parameter corresponding to the invalid argument.

    • Optional message: string

      The error message. If not specified, a default one will be used.

    Returns ArgumentError

Properties

parameter

parameter: string

The name of the method parameter corresponding to the invalid argument.

Static Error

Error: ErrorConstructor

Static message

message: string

Static name

name: string

Static Optional stack

stack: string