mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 06:11:49 +00:00
14 lines
231 B
TypeScript
14 lines
231 B
TypeScript
![]() |
import util from "util";
|
||
|
|
||
|
export class SimpleError {
|
||
|
public message: string;
|
||
|
|
||
|
constructor(message: string) {
|
||
|
this.message = message;
|
||
|
}
|
||
|
|
||
|
[util.inspect.custom](depth, options) {
|
||
|
return `Error: ${this.message}`;
|
||
|
}
|
||
|
}
|