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

# Interface ExceptionParserInterface

Interface used to parse exceptions into an associative array of data

### Direct known implementers

`Aws\Common\Exception\Parser\AbstractJsonExceptionParser`, `Aws\Common\Exception\Parser\DefaultXmlExceptionParser`

### Indirect known implementers

`Aws\Common\Exception\Parser\JsonQueryExceptionParser`, `Aws\Common\Exception\Parser\JsonRestExceptionParser`, `Aws\S3\Exception\Parser\S3ExceptionParser`

Namespace: Aws\Common\Exception\Parser
Located at Aws/Common/Exception/Parser/ExceptionParserInterface.php

## Methods summary

- `public` `parse ( Guzzle\Http\Message\RequestInterface $request, Guzzle\Http\Message\Response $response )`

  Parses an exception into an array of data containing at minimum the following array keys:

  - type: Exception type
  - code: Exception code
  - message: Exception message
  - request_id: Request ID
  - parsed: The parsed representation of the data (array, SimpleXMLElement, etc)

## Methods detail

# `public array`
`parse( `Guzzle\Http\Message\RequestInterface` $request, `Guzzle\Http\Message\Response` $response )`

Parses an exception into an array of data containing at minimum the following array keys:

- type: Exception type
- code: Exception code
- message: Exception message
- request_id: Request ID
- parsed: The parsed representation of the data (array, SimpleXMLElement, etc)

#### Parameters

$request
  ``Guzzle\Http\Message\RequestInterface``
  $request
$response
  ``Guzzle\Http\Message\Response``
  $response Unsuccessful response

#### Returns

`array`

### Magic methods summary