UNPKG

jiff

Version:

JSON diff and patch based on rfc6902

13 lines (11 loc) 432 B
module.exports = InvalidPatchOperationError; function InvalidPatchOperationError(message) { Error.call(this); this.name = this.constructor.name; this.message = message; if(typeof Error.captureStackTrace === 'function') { Error.captureStackTrace(this, this.constructor); } } InvalidPatchOperationError.prototype = Object.create(Error.prototype); InvalidPatchOperationError.prototype.constructor = InvalidPatchOperationError;