25 $ce =
new self($e->getMessage(), $e->getCode(), $e->getPrevious());
28 $alreadyAddedExceptions = array();
31 $alreadyAddedExceptions[] = $re;
32 $ce->addFailedRequestWithException($request, $re);
34 $ce->addFailedRequest($request);
39 if (
count($alreadyAddedExceptions) <
count($e)) {
41 if (!in_array($ex, $alreadyAddedExceptions)) {
57 return array_merge($this->successfulCommands, $this->failedCommands);
69 $this->successfulCommands[] = $command;
83 $this->failedCommands[] = $command;