discord-player-play-dl/src/utils/PlayerError.ts
2021-04-06 21:23:17 +05:45

10 lines
255 B
TypeScript

export default class PlayerError extends Error {
constructor(msg: string, name?: string) {
super();
this.name = name ?? 'PlayerError';
this.message = msg;
Error.captureStackTrace(this);
}
}
export { PlayerError };