mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-20 07:49:59 +02:00
feat: export scene to e+ on workspace creation/redemption (#8514)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
This commit is contained in:
@@ -50,6 +50,7 @@ export class WorkerUrlNotDefinedError extends Error {
|
||||
this.code = code;
|
||||
}
|
||||
}
|
||||
|
||||
export class WorkerInTheMainChunkError extends Error {
|
||||
public code;
|
||||
constructor(
|
||||
@@ -61,3 +62,14 @@ export class WorkerInTheMainChunkError extends Error {
|
||||
this.code = code;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Use this for generic, handled errors, so you can check against them
|
||||
* and rethrow if needed
|
||||
*/
|
||||
export class ExcalidrawError extends Error {
|
||||
constructor(message: string) {
|
||||
super(message);
|
||||
this.name = "ExcalidrawError";
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user