db-to-cloud
Version:
Synchronize your database with a cloud drive i.e. Dropbox, Google Drive, OneDrive, Github, etc.
13 lines (11 loc) • 339 B
JavaScript
class LockError extends Error {
constructor(expire) {
super(`The database is locked. Will expire at ${new Date(expire).toLocaleString()}`);
this.expire = expire;
this.name = "LockError";
if (Error.captureStackTrace) {
Error.captureStackTrace(this, LockError);
}
}
}
module.exports = {LockError};