Interface ErrorResponseExceptionInterface
Interface used to create an exception from an error response
Namespace: Guzzle\Plugin\ErrorResponse
Located at Guzzle/Plugin/ErrorResponse/ErrorResponseExceptionInterface.php
Located at Guzzle/Plugin/ErrorResponse/ErrorResponseExceptionInterface.php
Methods summary
-
public static
fromCommand ( Guzzle\Service\Command\CommandInterface $command, Guzzle\Http\Message\Response $response )
Create an exception for a command based on a command and an error response definition
Methods detail
#
public static
Guzzle\Plugin\ErrorResponse\ErrorResponseExceptionInterface
fromCommand( Guzzle\Service\Command\CommandInterface
$command, Guzzle\Http\Message\Response
$response )
Create an exception for a command based on a command and an error response definition
Parameters
- $command
Guzzle\Service\Command\CommandInterface
$command Command that was sent- $response
Guzzle\Http\Message\Response
$response The error response