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

14 lines
237 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](depth, options) {
return `Error: ${this.message}`;
}
}