Documentation

S3ExceptionParser extends DefaultXmlExceptionParser
in package

Parses S3 exception responses

Table of Contents

Methods

parse()  : array<string|int, mixed>
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)
parseBody()  : mixed
Parses additional exception information from the response body
parseHeaders()  : mixed
Parses additional exception information from the response headers

Methods

parse()

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)

public parse(RequestInterface $request, Response $response) : array<string|int, mixed>
Parameters
$request : RequestInterface
$response : Response

Unsuccessful response

Return values
array<string|int, mixed>

parseBody()

Parses additional exception information from the response body

protected parseBody(SimpleXMLElement $body, array<string|int, mixed> &$data) : mixed
Parameters
$body : SimpleXMLElement

The response body as XML

$data : array<string|int, mixed>

The current set of exception data

parseHeaders()

Parses additional exception information from the response headers

protected parseHeaders(RequestInterface $request, Response $response, array<string|int, mixed> &$data) : mixed
Parameters
$request : RequestInterface

Request that was issued

$response : Response

The response from the request

$data : array<string|int, mixed>

The current set of exception data


        
On this page

Search results