• File: JsonWebTokenError.js
  • Full Path: /home6/laduliya/test.mydthpay.com/node_modules/jsonwebtoken/lib/JsonWebTokenError.js
  • Date Modified: 03/02/2018 4:43 PM
  • File size: 428 bytes
  • MIME-type: text/plain
  • Charset: utf-8
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;