arnaucube
arnaucube/thoughtsPublic Self-hosted repository
thoughts/node_modules/mongoose/lib/errors/version.js
node_modules/mongoose/lib/errors/version.jsRaw
 1
 2/*!
 3 * Module dependencies.
 4 */
 5
 6var MongooseError = require('../error');
 7
 8/**
 9 * Version Error constructor.
10 *
11 * @inherits MongooseError
12 * @api private
13 */
14
15function VersionError () {
16  MongooseError.call(this, 'No matching document found.');
17  Error.captureStackTrace(this, arguments.callee);
18  this.name = 'VersionError';
19};
20
21/*!
22 * Inherits from MongooseError.
23 */
24
25VersionError.prototype.__proto__ = MongooseError.prototype;
26
27/*!
28 * exports
29 */
30
31module.exports = VersionError;