Constructor
# new Unauthorized(messageopt) → {Error}
A constructor function that creates the unauthorized error object. An unauthorized error object is used to represent the error when XDK tried to access resource without sufficient privilege.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
String
|
<optional> |
Human-readable description of the error. |
Custom error object, which is an instance of module:base/error#Unauthorized which in turn inherit from module:base/error#XDKError.
Error