code: function AggregateError(message) {
    if (!(this instanceof AggregateError)) {
      return new AggregateError(message);
    }
  
    Error.captureStackTrace(this, AggregateError);
    // Like http://www.ecma-international.org/ecma-262/6.0/#sec-error-message
    if (message !== undefined) {
      Object.defineProperty(this, 'message', {
        value: String(message),
        configurable: true,
        writable: true
      });
    }
  }
docs: Constructs an AggregateError.
  
  Based on the AggregateError class from bluebird.
  
  @class Represents a collection of errors.
  @constructor
  @extends Error
  @extends Array
  @param {string=} message Human-readable description of the error.