\Guzzle\Plugin\ErrorResponseErrorResponseExceptionInterface

Interface used to create an exception from an error response

Summary

Methods
Constants
fromCommand()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

fromCommand()

fromCommand(\Guzzle\Service\Command\CommandInterface  $command, \Guzzle\Http\Message\Response  $response) : self

Create an exception for a command based on a command and an error response definition

Parameters

\Guzzle\Service\Command\CommandInterface $command

Command that was sent

\Guzzle\Http\Message\Response $response

The error response

Returns

self