MCPcopy Create free account
hub / github.com/share/sharedb / ShareDBError

Function ShareDBError

lib/error.js:1–9  ·  view source on GitHub ↗
(code, message)

Source from the content-addressed store, hash-verified

1function ShareDBError(code, message) {
2 this.code = code;
3 this.message = message || '';
4 if (Error.captureStackTrace) {
5 Error.captureStackTrace(this, ShareDBError);
6 } else {
7 this.stack = new Error().stack;
8 }
9}
10
11ShareDBError.prototype = Object.create(Error.prototype);
12ShareDBError.prototype.constructor = ShareDBError;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…