$parser
$parser :
Converts generic Guzzle response exceptions into cos specific exceptions
getSubscribedEvents() : array
Returns an array of event names this subscriber wants to listen to.
The array keys are event names and the value can be:
For instance:
The event names to listen to
onRequestError(\Guzzle\Common\Event $event)
Throws a more meaningful request exception if available
\Guzzle\Common\Event | $event | Event emitted |
fromResponse(\Guzzle\Http\Message\RequestInterface $request, \Guzzle\Http\Message\Response $response)
\Guzzle\Http\Message\RequestInterface | $request | |
\Guzzle\Http\Message\Response | $response |
createException( $className, \Guzzle\Http\Message\RequestInterface $request, \Guzzle\Http\Message\Response $response, array $parts)
$className | ||
\Guzzle\Http\Message\RequestInterface | $request | |
\Guzzle\Http\Message\Response | $response | |
array | $parts |