https://github.com/Automattic/mongoose
Raw File
Tip revision: df490406b753c10c63e0843b293c77d3c93cded9 authored by Aaron Heckmann on 07 January 2013, 22:08:17 UTC
release 2.9.7
Tip revision: df49040
error.js

/**
 * Mongoose error
 *
 * @api private
 */

function MongooseError (msg) {
  Error.call(this);
  Error.captureStackTrace(this, arguments.callee);
  this.message = msg;
  this.name = 'MongooseError';
};

/**
 * Inherits from Error.
 */

MongooseError.prototype.__proto__ = Error.prototype;

/**
 * Module exports.
 */

module.exports = MongooseError;
back to top