dbd.db
Version:
A Lightweight Schema-Free Object-Oriented LocalDatabase for Development and Production Purpose
19 lines (16 loc) • 348 B
JavaScript
/**
* The custom error that used by the db
* @extends {Error}
*/
class DBDError extends Error {
/**
* @param {!String} message The error message
* @param {!Number} code The error code
*/
constructor(message, code) {
super(message)
Error.captureStackTrace(this, DBDError)
this.code = parseInt(code)
}
}
module.exports = DBDError