custom-errors-database
v0.1.2
Published
a custom error for database errors
Downloads
3
Maintainers
Readme
custom-errors-database
a custom error for database errors
table of contents
installation
npm install custom-errors-database
api
/**
* @param {number} code
* @param {string} message
*
* @constructor
*/
function DatabaseError( code, message )
usage
var DatabaseError = require( 'custom-errors-database' )
throw new DatabaseError( 24, 'database error message' )