\Qcloud\CosExceptionParser

Parses default XML exception responses

Summary

Methods
Properties
Constants
parse()
No public properties found
No constants found
parseHeaders()
parseBody()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

parse()

parse(\Psr\Http\Message\RequestInterface  $request, \Psr\Http\Message\ResponseInterface  $response) : mixed

Parameters

\Psr\Http\Message\RequestInterface $request
\Psr\Http\Message\ResponseInterface $response

Returns

mixed —

parseHeaders()

parseHeaders(\Psr\Http\Message\RequestInterface  $request, \Qcloud\Cos\Response  $response, array  $data) : mixed

Parses additional exception information from the response headers

Parameters

\Psr\Http\Message\RequestInterface $request

Request that was issued

\Qcloud\Cos\Response $response

The response from the request

array $data

The current set of exception data

Returns

mixed —

parseBody()

parseBody(\SimpleXMLElement  $body, array  $data) : mixed

Parses additional exception information from the response body

Parameters

\SimpleXMLElement $body

The response body as XML

array $data

The current set of exception data

Returns

mixed —