2018-10-26 06:41:20 +03:00
|
|
|
import util from "util";
|
|
|
|
|
2020-05-11 04:02:22 +03:00
|
|
|
export class SimpleError extends Error {
|
2018-10-26 06:41:20 +03:00
|
|
|
public message: string;
|
|
|
|
|
|
|
|
constructor(message: string) {
|
2020-05-11 04:02:22 +03:00
|
|
|
super(message);
|
2018-10-26 06:41:20 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
[util.inspect.custom](depth, options) {
|
|
|
|
return `Error: ${this.message}`;
|
|
|
|
}
|
|
|
|
}
|