@sap/xssec
Version:
XS Advanced Container Security API for node.js
15 lines (12 loc) • 423 B
JavaScript
const ValidationError = require("./ValidationError");
class InvalidJwtError extends ValidationError {
/** @type {Error} Error encountered during parsing */
parseError;
constructor(jwt, parseError, message = "JWT could not be parsed.") {
super(jwt, message);
this.name = "InvalidJwtError";
this.jwt = jwt;
this.parseError = parseError;
}
}
module.exports = InvalidJwtError;