(code, message)
| 1 | function 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 | |
| 11 | ShareDBError.prototype = Object.create(Error.prototype); |
| 12 | ShareDBError.prototype.constructor = ShareDBError; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…