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

# Class UnprocessedWriteRequestsException

This exception may contain unprocessed write request items

  Exception
  RuntimeException
  Aws\Common\Exception\RuntimeException implements Aws\Common\Exception\AwsExceptionInterface
  Aws\DynamoDb\Exception\UnprocessedWriteRequestsException implements IteratorAggregate, Countable

Namespace: Aws\DynamoDb\Exception
Located at Aws/DynamoDb/Exception/UnprocessedWriteRequestsException.php

## Methods summary

- `public` `__construct ( array $unprocessedItems = array() )`
- `public` `addItem ( Aws\DynamoDb\Model\BatchRequest\WriteRequestInterface $unprocessedItem )`

  Adds an unprocessed write request to the collection

- `public` `count ( )`

  Get the total number of request exceptions

- `public` `getIterator ( )`

  Allows array-like iteration over the request exceptions

## Methods detail

# `public`
`__construct( array $unprocessedItems = array() )`

#### Overrides

`Exception::__construct`
# `public `Aws\DynamoDb\Exception\UnprocessedWriteRequestsException``
`addItem( `Aws\DynamoDb\Model\BatchRequest\WriteRequestInterface` $unprocessedItem )`

Adds an unprocessed write request to the collection

#### Parameters

$unprocessedItem
  ``Aws\DynamoDb\Model\BatchRequest\WriteRequestInterface``
  $unprocessedItem

#### Returns

``Aws\DynamoDb\Exception\UnprocessedWriteRequestsException``
# `public integer`
`count( )`

Get the total number of request exceptions

#### Returns

`integer`

#### Implementation of

`Countable::count()`
# `public `ArrayIterator``
`getIterator( )`

Allows array-like iteration over the request exceptions

#### Returns

``ArrayIterator``

#### Implementation of

`IteratorAggregate::getIterator()`

### Methods inherited from Exception

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

### Magic methods summary

## Properties summary

### Properties inherited from Exception

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