UNPKG

express-jwt-authorization

Version:
11 lines (10 loc) 275 B
class UnauthorizedError extends Error { constructor(code, message) { super(message); this.name = this.constructor.name; this.code = code; this.message = message; Error.captureStackTrace(this, this.constructor); } } module.exports = UnauthorizedError;