MCPcopy Index your code
hub / github.com/mike-marcacci/node-redlock / LockError

Function LockError

redlock.js:72–78  ·  view source on GitHub ↗
(message, attempts)

Source from the content-addressed store, hash-verified

70// ---------
71// This error is returned when there is an error locking a resource.
72function LockError(message, attempts) {
73 Error.call(this);
74 Error.captureStackTrace(this, LockError);
75 this.name = 'LockError';
76 this.message = message || 'Failed to lock the resource.';
77 this.attempts = attempts;
78}
79
80util.inherits(LockError, Error);
81

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected