custom-errors-database

0.1.2 • Public • Published

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

Package Sidebar

Install

npm i custom-errors-database

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

27.9 kB

Total Files

16

Last publish

Collaborators

  • dentous