3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-14 21:31:50 +00:00
zeppelin/backend/src/SimpleError.ts

14 lines
223 B
TypeScript
Raw Normal View History

import util from "util";
2020-05-11 04:02:22 +03:00
export class SimpleError extends Error {
public message: string;
constructor(message: string) {
2020-05-11 04:02:22 +03:00
super(message);
}
[util.inspect.custom]() {
return `Error: ${this.message}`;
}
}