Class ArgumentError<T>
Type Parameters
Hierarchy
- Error
- ArgumentError
Index
Properties
Methods
Properties
Readonly
argumentName
argumentName : string
The name of the argument with an invalid value.
Optional
cause
cause?: unknown
message
message: string
name
name: string
Optional
stack
stack?: string
Readonly
value
The value of the invalid argument.
Static
Optional
prepareStackTrace
prepareStackTrace ?: ((err: Error, stackTraces: CallSite[]) => any)
Optional override for formatting stack traces
Static
stackTraceLimit
stackTraceLimit : number
Methods
Static
captureStackTrace
- capture
Stack (targetObject, constructorOpt?): voidTrace Create .stack property on a target object
Parameters
- targetObject: object
Optional
constructorOpt: Function
Returns void
- capture
Stack (targetObject, constructorOpt?): voidTrace Create .stack property on a target object
Parameters
- targetObject: object
Optional
constructorOpt: Function
Returns void
The
ValueError
object represents an error with a specific argument provided.Remarks
Only returns from methods that check for specific errors.