Open Journal Systems  3.3.0
Guzzle\Plugin\ErrorResponse\ErrorResponseExceptionInterface Interface Reference
Inheritance diagram for Guzzle\Plugin\ErrorResponse\ErrorResponseExceptionInterface:
Guzzle\Tests\Mock\ErrorResponseMock

Static Public Member Functions

static fromCommand (CommandInterface $command, Response $response)
 

Detailed Description

Interface used to create an exception from an error response

Definition at line 11 of file ErrorResponseExceptionInterface.php.

Member Function Documentation

◆ fromCommand()

static Guzzle\Plugin\ErrorResponse\ErrorResponseExceptionInterface::fromCommand ( CommandInterface  $command,
Response  $response 
)
static

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

Parameters
CommandInterface$commandCommand that was sent
Response$responseThe error response
Returns
self

Implemented in Guzzle\Tests\Mock\ErrorResponseMock.


The documentation for this interface was generated from the following file: