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

# Class ExceptionBufferingBatch

BatchInterface decorator used to buffer exceptions encountered during a transfer. The exceptions can then later be processed after a batch flush has completed.

  Guzzle\Batch\AbstractBatchDecorator implements Guzzle\Batch\BatchInterface
  Guzzle\Batch\ExceptionBufferingBatch

Namespace: Guzzle\Batch
Located at Guzzle/Batch/ExceptionBufferingBatch.php

## Methods summary

- `public` `flush ( )`

  Flush the batch and transfer the items

- `public` `getExceptions ( )`

  Get the buffered exceptions

- `public` `clearExceptions ( )`

  Clear the buffered exceptions

## Methods detail

# `public array`
`flush( )`

Flush the batch and transfer the items

#### Returns

`array`
Returns an array flushed items

#### Overrides

`Guzzle\Batch\AbstractBatchDecorator::flush`
# `public array`
`getExceptions( )`

Get the buffered exceptions

#### Returns

`array`
Array of BatchTransferException objects
# `public`
`clearExceptions( )`

Clear the buffered exceptions

### Methods inherited from Guzzle\Batch\AbstractBatchDecorator

`__call()`, `__construct()`, `add()`, `getDecorators()`, `isEmpty()`

### Magic methods summary

## Properties summary

`protected array` | $exceptions | # Array of BatchTransferException exceptions

### Properties inherited from Guzzle\Batch\AbstractBatchDecorator

`$decoratedBatch`