Skip to content

custom-errors/database

Repository files navigation

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

About

a custom error for generic database errors

Resources

License

Stars

Watchers

Forks

Packages

No packages published