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.
2b-bot-v2/src/lib/utils/BotError.ts

20 lines
327 B
TypeScript

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}`;
}
}