mobx-keystone-yjs
Version:
Yjs bindings for mobx-keystone
19 lines (16 loc) • 360 B
text/typescript
/**
* A mobx-keystone-yjs error.
*/
export class MobxKeystoneYjsError extends Error {
constructor(msg: string) {
super(msg)
// Set the prototype explicitly.
Object.setPrototypeOf(this, MobxKeystoneYjsError.prototype)
}
}
/**
* @internal
*/
export function failure(msg: string) {
return new MobxKeystoneYjsError(msg)
}