arnaucube
arnaucube/thoughtsPublic Self-hosted repository
thoughts/node_modules/jsonwebtoken/lib/JsonWebTokenError.js
node_modules/jsonwebtoken/lib/JsonWebTokenError.jsRaw
 1var JsonWebTokenError = function (message, error) {
 2  Error.call(this, message);
 3  Error.captureStackTrace(this, this.constructor);
 4  this.name = 'JsonWebTokenError';
 5  this.message = message;
 6  if (error) this.inner = error;
 7};
 8
 9JsonWebTokenError.prototype = Object.create(Error.prototype);
10JsonWebTokenError.prototype.constructor = JsonWebTokenError;
11
12module.exports = JsonWebTokenError;