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

10 lines
317 B
TypeScript
Raw Normal View History

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