Identifies the invalid value.
Rest
...args: [paramName: PropertyKey, message: string, metadata?: unknown]Readonly
actualIdentifies the invalid value.
Optional
causeReadonly
messageDetails of the exception.
Optional
Readonly
metadataReadonly
paramThe parameter that caused this exception.
Optional
stackStatic
Optional
prepareOptional override for formatting stack traces
Static
stackTurns the exception into a Serialized object.
Static
capture
Thrown when a method is called with at least one argument that isn't null and contains an invalid value that doesn't belong to the expected range of values for the argument.