@tldraw/sync-core
Version:
tldraw infinite canvas SDK (multiplayer sync).
20 lines (19 loc) • 654 B
JavaScript
class TLRemoteSyncError extends Error {
/**
* Creates a new TLRemoteSyncError with the specified reason.
*
* reason - The specific reason code or custom string describing why the sync failed.
* When using predefined reasons from TLSyncErrorCloseEventReason, the client
* can handle specific error types appropriately. Custom strings allow for
* application-specific error details.
*/
constructor(reason) {
super(`sync error: ${reason}`);
this.reason = reason;
}
name = "RemoteSyncError";
}
export {
TLRemoteSyncError
};
//# sourceMappingURL=TLRemoteSyncError.mjs.map