You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
export abstract class BotError extends Error {
|
|
|
|
/**
|
|
* the name of the error
|
|
*/
|
|
name: string;
|
|
|
|
/**
|
|
* The
|
|
*/
|
|
description: string;
|
|
|
|
/**
|
|
* Override the default toString for a better error description.
|
|
*/
|
|
toString() {
|
|
return `${this.name}: ${this.description}`;
|
|
}
|
|
}
|