1: <?php
2:
3: namespace Guzzle\Plugin\ErrorResponse;
4:
5: use Guzzle\Service\Command\CommandInterface;
6: use Guzzle\Http\Message\Response;
7:
8: /**
9: * Interface used to create an exception from an error response
10: */
11: interface ErrorResponseExceptionInterface
12: {
13: /**
14: * Create an exception for a command based on a command and an error response definition
15: *
16: * @param CommandInterface $command Command that was sent
17: * @param Response $response The error response
18: *
19: * @return self
20: */
21: public static function fromCommand(CommandInterface $command, Response $response);
22: }
23: