/**
  * Creates a new CommandTransferException from a MultiTransferException
  *
  * @param MultiTransferException $e Exception to base a new exception on
  *
  * @return self
  */
 public static function fromMultiTransferException(MultiTransferException $e)
 {
     $ce = new self($e->getMessage(), $e->getCode(), $e->getPrevious());
     return $ce->setExceptions($e->getIterator()->getArrayCopy())->setSuccessfulRequests($e->getSuccessfulRequests())->setFailedRequests($e->getFailedRequests());
 }