mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-14 21:31:50 +00:00
13 lines
223 B
TypeScript
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}`;
|
|
}
|
|
}
|