ErrorResponseMock
extends Exception
in package
implements
ErrorResponseExceptionInterface
Interfaces, Classes and Traits
- ErrorResponseExceptionInterface
- Interface used to create an exception from an error response
Table of Contents
- $command : mixed
- $response : mixed
- __construct() : mixed
- fromCommand() : self
- Create an exception for a command based on a command and an error response definition
Properties
$command
public
mixed
$command
$response
public
mixed
$response
Methods
__construct()
public
__construct(mixed $command, mixed $response) : mixed
Parameters
- $command : mixed
- $response : mixed
Return values
mixed —fromCommand()
Create an exception for a command based on a command and an error response definition
public
static fromCommand(CommandInterface $command, Response $response) : self
Parameters
- $command : CommandInterface
-
Command that was sent
- $response : Response
-
The error response