nfp_sites/base/error.mjs

14 lines
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
}
}