Class DefaultXmlExceptionParser
Parses default XML exception responses
- Aws\Common\Exception\Parser\DefaultXmlExceptionParser implements Aws\Common\Exception\Parser\ExceptionParserInterface
Direct known subclasses
Namespace: Aws\Common\Exception\Parser
Located at Aws/Common/Exception/Parser/DefaultXmlExceptionParser.php
Located at Aws/Common/Exception/Parser/DefaultXmlExceptionParser.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
-
protected
parseBody ( SimpleXMLElement $body, array & $data )
Parses additional exception information from the response body
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
Implementation of
#
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
Parses additional exception information from the response body
Parameters
- $body
SimpleXMLElement
$body The response body as XML- $data
array
$data The current set of exception data