Constructs a new PermissionViolationError
.
The main error message.
The HTTP status code to return.
Optional
causeAn application-unique, readable error code.
Optional
stackThe HTTP status code to associate with this error.
Static
Optional
prepareOptional override for formatting stack traces
Static
stackStatic
captureStatic
isChecks if an object is an instance of AbstractError
, or one of its subclasses.
The object to check.
Only check for similar looking error codes. You're going to want to use this if you're dealing with a setup where multiple versions of js-utils are loaded.
true
if the object is an AbstractError
, false
otherwise.
An error used when access to a resource was requested, but the required permissions were not available.