passport-smartthings
Version:
A Passport.js OAuth 2.0 strategy for Smart Things
20 lines (16 loc) • 422 B
JavaScript
function SmartThingsGraphAPIError(message, type) {
Error.call(this);
Error.captureStackTrace(this, arguments.callee);
this.name = 'SmartThingsGraphAPIError';
this.message = message;
this.type = type;
this.status = 500;
}
/**
* Inherit from `Error`.
*/
SmartThingsGraphAPIError.prototype.__proto__ = Error.prototype;
/**
* Expose `SmartThingsGraphAPIError`.
*/
module.exports = SmartThingsGraphAPIError;