nfp_sites/base/error.mjs
Jonatan Nilsson 531c7acefe
Some checks failed
/ deploy (push) Failing after -65h42m50s
base: Fix error logging and reporting, make it better.
2023-11-14 07:26:54 +00:00

14 lines
No EOL
304 B
JavaScript

import { HttpError } from 'flaska'
export class HttpErrorInternal extends HttpError {
constructor(message, inner) {
super(500, message);
Error.captureStackTrace(this, HttpError);
let proto = Object.getPrototypeOf(this);
proto.name = 'HttpErrorInternal';
this.inner = inner
}
}