2023-11-14 07:26:54 +00:00
|
|
|
import { HttpError } from 'flaska'
|
|
|
|
|
|
|
|
export class HttpErrorInternal extends HttpError {
|
2023-11-30 04:13:08 +00:00
|
|
|
constructor(message, inner, extra) {
|
2023-11-14 07:26:54 +00:00
|
|
|
super(500, message);
|
|
|
|
|
|
|
|
Error.captureStackTrace(this, HttpError);
|
|
|
|
|
|
|
|
let proto = Object.getPrototypeOf(this);
|
|
|
|
proto.name = 'HttpErrorInternal';
|
|
|
|
|
|
|
|
this.inner = inner
|
2023-11-30 04:13:08 +00:00
|
|
|
this.extra = extra
|
2023-11-14 07:26:54 +00:00
|
|
|
}
|
|
|
|
}
|