NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Class MultiTransferException

Exception encountered during a multi transfer

  Exception
  Guzzle\Common\Exception\ExceptionCollection implements Guzzle\Common\Exception\GuzzleException, IteratorAggregate, Countable
  Guzzle\Http\Exception\MultiTransferException

### Direct known subclasses

`Guzzle\Service\Exception\CommandTransferException`

Namespace: Guzzle\Http\Exception
Located at Guzzle/Http/Exception/MultiTransferException.php

## Methods summary

- `public` `getAllRequests ( )`

  Get all of the requests in the transfer

- `public` `addSuccessfulRequest ( Guzzle\Http\Message\RequestInterface $request )`

  Add to the array of successful requests

- `public` `addFailedRequest ( Guzzle\Http\Message\RequestInterface $request )`

  Add to the array of failed requests

- `public` `addFailedRequestWithException ( Guzzle\Http\Message\RequestInterface $request, Exception $exception )`

  Add to the array of failed requests and associate with exceptions

- `public` `getExceptionForFailedRequest ( Guzzle\Http\Message\RequestInterface $request )`

  Get the Exception that caused the given $request to fail

- `public` `setSuccessfulRequests ( array $requests )`

  Set all of the successful requests

- `public` `setFailedRequests ( array $requests )`

  Set all of the failed requests

- `public` `getSuccessfulRequests ( )`

  Get an array of successful requests sent in the multi transfer

- `public` `getFailedRequests ( )`

  Get an array of failed requests sent in the multi transfer

- `public` `containsRequest ( Guzzle\Http\Message\RequestInterface $request )`

  Check if the exception object contains a request

## Methods detail

# `public array`
`getAllRequests( )`

Get all of the requests in the transfer

#### Returns

`array`
# `public `Guzzle\Http\Exception\MultiTransferException``
`addSuccessfulRequest( `Guzzle\Http\Message\RequestInterface` $request )`

Add to the array of successful requests

#### Parameters

$request
  ``Guzzle\Http\Message\RequestInterface``
  $request Successful request

#### Returns

``Guzzle\Http\Exception\MultiTransferException``
# `public `Guzzle\Http\Exception\MultiTransferException``
`addFailedRequest( `Guzzle\Http\Message\RequestInterface` $request )`

Add to the array of failed requests

#### Parameters

$request
  ``Guzzle\Http\Message\RequestInterface``
  $request Failed request

#### Returns

``Guzzle\Http\Exception\MultiTransferException``
# `public `Guzzle\Http\Exception\MultiTransferException``
`addFailedRequestWithException( `Guzzle\Http\Message\RequestInterface` $request, `Exception` $exception )`

Add to the array of failed requests and associate with exceptions

#### Parameters

$request
  ``Guzzle\Http\Message\RequestInterface``
  $request Failed request
$exception
  ``Exception``
  $exception Exception to add and associate with

#### Returns

``Guzzle\Http\Exception\MultiTransferException``
# `public `Exception`|null`
`getExceptionForFailedRequest( `Guzzle\Http\Message\RequestInterface` $request )`

Get the Exception that caused the given $request to fail

#### Parameters

$request
  ``Guzzle\Http\Message\RequestInterface``
  $request Failed command

#### Returns

``Exception`|null`
# `public `Guzzle\Http\Exception\MultiTransferException``
`setSuccessfulRequests( array $requests )`

Set all of the successful requests

#### Parameters

$requests
  `array`
  Array of requests

#### Returns

``Guzzle\Http\Exception\MultiTransferException``
# `public `Guzzle\Http\Exception\MultiTransferException``
`setFailedRequests( array $requests )`

Set all of the failed requests

#### Parameters

$requests
  `array`
  Array of requests

#### Returns

``Guzzle\Http\Exception\MultiTransferException``
# `public array`
`getSuccessfulRequests( )`

Get an array of successful requests sent in the multi transfer

#### Returns

`array`
# `public array`
`getFailedRequests( )`

Get an array of failed requests sent in the multi transfer

#### Returns

`array`
# `public boolean`
`containsRequest( `Guzzle\Http\Message\RequestInterface` $request )`

Check if the exception object contains a request

#### Parameters

$request
  ``Guzzle\Http\Message\RequestInterface``
  $request Request to check

#### Returns

`boolean`

### Methods inherited from Guzzle\Common\Exception\ExceptionCollection

`__construct()`, `add()`, `count()`, `getFirst()`, `getIterator()`, `setExceptions()`

### Methods inherited from Exception

`__toString()`, `__wakeup()`, `getCode()`, `getFile()`, `getLine()`, `getMessage()`, `getPrevious()`, `getTrace()`, `getTraceAsString()`

### Magic methods summary

## Properties summary

`protected array` | $successfulRequests | #
`protected array` | $failedRequests | #
`protected array` | $exceptionForRequest | #

### Properties inherited from Guzzle\Common\Exception\ExceptionCollection

`$exceptions`

### Properties inherited from Exception

`$code`, `$file`, `$line`, `$message`