ArgumentError
Hierarchy
- Readonly<Error & { cause: unknown; message: string; name: ArgumentError; stack: string } & { name: ArgumentError }>
- ArgumentError
Index
Constructors
constructor
Error constructor
Properties
staticreadonlyerrorName
Error name
Methods
staticasString
Static method to convert an error to a string
statichasInstance
Return true if anyValue is an instance of current class
Type parameters
- Class: new (...args: any) => any
ArgumentError constructor. An error when wrong argument is passed to a function