0.1.2 • Published 6 years ago

custom-errors-database v0.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

custom-errors-database

NPM version Build Status Coverage Status NSP Status

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' )

license

MIT License