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