Interface Guzzle\Plugin\ErrorResponse\ErrorResponseExceptionInterface

Interface used to create an exception from an error response

Public Methods

Hide inherited methods

MethodDescriptionDefined By
fromCommand() Create an exception for a command based on a command and an error response definition Guzzle\Plugin\ErrorResponse\ErrorResponseExceptionInterface

Method Details

fromCommand() public abstract static method

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

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

Command that was sent

$response Guzzle\Http\Message\Response

The error response