Optional
message: stringOptional
options: ArgumentTypeErrorOptionsOptional
causeOptional
Readonly
param0-based index of the parameter that causes this exception.
Optional
Readonly
paramname of the parameter that causes this exception.
Optional
stackOptional
Readonly
targetOptional
Readonly
valueStatic
Optional
prepareOptional override for formatting stack traces
Static
stackStatic
captureCreate .stack property on a target object
Optional
constructorOpt: FunctionStatic
createShort-hand function to create an ArgumentTypeError instace with general message.
Optional
paramName: stringOptional
message: string
The error that is thrown when a
null
(orundefined
) value is passed to a method that does not accept it as a valid argument.Remarks
By convention of jscorlib, we recommend not distinguishing between
null
andundefined
.