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

# Class S3ExceptionParser

Parses S3 exception responses

  Aws\Common\Exception\Parser\DefaultXmlExceptionParser implements Aws\Common\Exception\Parser\ExceptionParserInterface
  Aws\S3\Exception\Parser\S3ExceptionParser

Namespace: Aws\S3\Exception\Parser
Located at Aws/S3/Exception/Parser/S3ExceptionParser.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)
- `protected` `parseHeaders ( Guzzle\Http\Message\RequestInterface $request, Guzzle\Http\Message\Response $response, array & $data )`

  Parses additional exception information from the response headers

## 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`

#### Overrides

`Aws\Common\Exception\Parser\DefaultXmlExceptionParser::parse`
# `protected`
`parseHeaders( `Guzzle\Http\Message\RequestInterface` $request, `Guzzle\Http\Message\Response` $response, array & $data )`

Parses additional exception information from the response headers

#### Parameters

$request
  ``Guzzle\Http\Message\RequestInterface``
  $request Request that was issued
$response
  ``Guzzle\Http\Message\Response``
  $response The response from the request
$data
  `array`
  $data The current set of exception data

#### Overrides

`Aws\Common\Exception\Parser\DefaultXmlExceptionParser::parseHeaders`

### Methods inherited from Aws\Common\Exception\Parser\DefaultXmlExceptionParser

`parseBody()`

### Magic methods summary