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
2023-05-08 22:58:51 +03:00

13 lines
223 B
TypeScript

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