voice-changer/client/lib/src/exceptions.ts

10 lines
318 B
TypeScript
Raw Normal View History

2023-06-11 04:55:26 +03:00
export class ModelLoadException extends Error {
2023-09-25 07:25:07 +03:00
public causeFileType: string = "";
2023-06-11 04:55:26 +03:00
constructor(causeFileType: string) {
super(`Model Load Exception:${causeFileType}`);
this.causeFileType = causeFileType;
this.name = this.constructor.name;
Error.captureStackTrace(this);
}
}