mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-30 17:06:04 +03:00
23 lines
598 B
PHP
23 lines
598 B
PHP
|
<?php
|
||
|
|
||
|
namespace Guzzle\Plugin\ErrorResponse;
|
||
|
|
||
|
use Guzzle\Service\Command\CommandInterface;
|
||
|
use Guzzle\Http\Message\Response;
|
||
|
|
||
|
/**
|
||
|
* Interface used to create an exception from an error response
|
||
|
*/
|
||
|
interface ErrorResponseExceptionInterface
|
||
|
{
|
||
|
/**
|
||
|
* Create an exception for a command based on a command and an error response definition
|
||
|
*
|
||
|
* @param CommandInterface $command Command that was sent
|
||
|
* @param Response $response The error response
|
||
|
*
|
||
|
* @return self
|
||
|
*/
|
||
|
public static function fromCommand(CommandInterface $command, Response $response);
|
||
|
}
|