1 export class BaseError
extends Error {
4 public constructor (message
?: string) {
6 this.name
= new.target
.name
8 Object.setPrototypeOf(this, new.target
.prototype
)
9 if (typeof Error.captureStackTrace
=== 'function') {
10 Error.captureStackTrace(this, BaseError
)