fogine/couchbase-odm

View on GitHub
lib/error/keyError.js

Summary

Maintainability
A
1 hr
Test Coverage
var util = require('util');

/**
 * KeyError
 *
 * @constructor
 * @extends Error
 *
 * @param {string} message
 * */
function KeyError(message) {

    Error.call(this);
    Error.captureStackTrace(this, this.constructor);

    this.name = this.constructor.name;
    this.message = message;
}

util.inherits(KeyError, Error);
exports = module.exports = KeyError;