mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
33 lines
493 B
JavaScript
33 lines
493 B
JavaScript
![]() |
|
||
|
/*!
|
||
|
* Module requirements
|
||
|
*/
|
||
|
|
||
|
var MongooseError = require('../error')
|
||
|
|
||
|
/**
|
||
|
* Document Error
|
||
|
*
|
||
|
* @param {String} msg
|
||
|
* @inherits MongooseError
|
||
|
* @api private
|
||
|
*/
|
||
|
|
||
|
function DocumentError (msg) {
|
||
|
MongooseError.call(this, msg);
|
||
|
Error.captureStackTrace(this, arguments.callee);
|
||
|
this.name = 'DocumentError';
|
||
|
};
|
||
|
|
||
|
/*!
|
||
|
* Inherits from MongooseError.
|
||
|
*/
|
||
|
|
||
|
DocumentError.prototype.__proto__ = MongooseError.prototype;
|
||
|
|
||
|
/*!
|
||
|
* Module exports.
|
||
|
*/
|
||
|
|
||
|
module.exports = exports = DocumentError;
|