json-type-validation
json-type-validation copied to clipboard
Throw an instance of Error, not arbitary object
Throw an instance of Error, not arbitary object, because stack information is only preserved if Error instance or a derived class is used.