小小儁爺
2024-08-09 a3fdfa6e5db6218a6ab09480a982fdc9fd0e6459
1
2
3
4
5
6
7
8
9
10
11
12
13
14
var JsonWebTokenError = function (message, error) {
  Error.call(this, message);
  if(Error.captureStackTrace) {
    Error.captureStackTrace(this, this.constructor);
  }
  this.name = 'JsonWebTokenError';
  this.message = message;
  if (error) this.inner = error;
};
 
JsonWebTokenError.prototype = Object.create(Error.prototype);
JsonWebTokenError.prototype.constructor = JsonWebTokenError;
 
module.exports = JsonWebTokenError;