diff options
author | lizi <li.zi30@zte.com.cn> | 2017-09-28 19:16:20 +0800 |
---|---|---|
committer | lizi <li.zi30@zte.com.cn> | 2017-09-28 19:16:20 +0800 |
commit | b2a98df1fcee69ccfbab37774a9bc3152529242f (patch) | |
tree | c50c298e0d6ee20658b386da54ae01623f5bc95a /common/src/main/webapp/usageguide/appserver/node_modules/mongoose/lib/error/cast.js | |
parent | 9d0d1b611f53e3f51f8bf158bfad6eb76e84d945 (diff) |
Remove the unused thirdpary code from esr-gui.
Change-Id: I9f7d7234df60c7c33abef2efff051ae433e73c8c
Issue-ID: AAI-402
Signed-off-by: lizi <li.zi30@zte.com.cn>
Diffstat (limited to 'common/src/main/webapp/usageguide/appserver/node_modules/mongoose/lib/error/cast.js')
-rw-r--r-- | common/src/main/webapp/usageguide/appserver/node_modules/mongoose/lib/error/cast.js | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/common/src/main/webapp/usageguide/appserver/node_modules/mongoose/lib/error/cast.js b/common/src/main/webapp/usageguide/appserver/node_modules/mongoose/lib/error/cast.js deleted file mode 100644 index f200a9d..0000000 --- a/common/src/main/webapp/usageguide/appserver/node_modules/mongoose/lib/error/cast.js +++ /dev/null @@ -1,60 +0,0 @@ -/*! - * Module dependencies. - */ - -var MongooseError = require('../error.js'); -var util = require('util'); - -/** - * Casting Error constructor. - * - * @param {String} type - * @param {String} value - * @inherits MongooseError - * @api private - */ - -function CastError(type, value, path, reason) { - var stringValue = util.inspect(value); - stringValue = stringValue.replace(/^'/, '"').replace(/'$/, '"'); - if (stringValue.charAt(0) !== '"') { - stringValue = '"' + stringValue + '"'; - } - MongooseError.call(this, 'Cast to ' + type + ' failed for value ' + - stringValue + ' at path "' + path + '"'); - if (Error.captureStackTrace) { - Error.captureStackTrace(this); - } else { - this.stack = new Error().stack; - } - this.stringValue = stringValue; - this.name = 'CastError'; - this.kind = type; - this.value = value; - this.path = path; - this.reason = reason; -} - -/*! - * Inherits from MongooseError. - */ - -CastError.prototype = Object.create(MongooseError.prototype); -CastError.prototype.constructor = MongooseError; - -/*! - * ignore - */ - -CastError.prototype.setModel = function(model) { - this.model = model; - this.message = 'Cast to ' + this.kind + ' failed for value ' + - this.stringValue + ' at path "' + this.path + '"' + ' for model "' + - model.modelName + '"'; -}; - -/*! - * exports - */ - -module.exports = CastError; |