19 lines
562 B
TypeScript
19 lines
562 B
TypeScript
export class ConnectionInstantiationError extends Error {}
|
|
export class NotImplementedError extends Error {
|
|
name: string = "NotImplementedError";
|
|
constructor() {
|
|
super();
|
|
this.message = `function ${this.stack?.split("\n")?.[1].split("@")?.[0]} not implemented!`;
|
|
}
|
|
}
|
|
/**
|
|
* Indicates that the compositor was unable to perform the action requested.
|
|
*
|
|
* Individual compositor adapters should subclass this to provide a more specific error.
|
|
*/
|
|
export class ActionError extends Error {
|
|
get name(): string {
|
|
return this.constructor.name;
|
|
}
|
|
}
|