3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00
zeppelin/backend/src/SimpleError.ts
2020-05-11 04:02:22 +03:00

13 lines
237 B
TypeScript

import util from "util";
export class SimpleError extends Error {
public message: string;
constructor(message: string) {
super(message);
}
[util.inspect.custom](depth, options) {
return `Error: ${this.message}`;
}
}