You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

33 lines
537 B

'use strict';
/*!
* Module dependencies.
*/
var MongooseError = require('../error.js');
/**
* Version Error constructor.
*
* @inherits MongooseError
* @api private
*/
function VersionError(doc) {
MongooseError.call(this, 'No matching document found for id "' + doc._id +
'"');
this.name = 'VersionError';
}
/*!
* Inherits from MongooseError.
*/
VersionError.prototype = Object.create(MongooseError.prototype);
VersionError.prototype.constructor = MongooseError;
/*!
* exports
*/
module.exports = VersionError;