2021-04-06 19:06:18 +05:00
|
|
|
export default class PlayerError extends Error {
|
|
|
|
constructor(msg: string, name?: string) {
|
|
|
|
super();
|
2021-04-06 19:08:01 +05:00
|
|
|
this.name = name ?? 'PlayerError';
|
2021-04-06 19:06:18 +05:00
|
|
|
this.message = msg;
|
|
|
|
Error.captureStackTrace(this);
|
|
|
|
}
|
2021-04-06 19:08:01 +05:00
|
|
|
}
|
2021-04-06 20:38:17 +05:00
|
|
|
|
|
|
|
export { PlayerError };
|