src/Command/Argument/InvalidOptionException.php 1 location
|
@@ 8-15 (lines=8) @@
|
5 |
|
|
6 |
|
class InvalidOptionException extends InvalidCommandArgumentException |
7 |
|
{ |
8 |
|
public function __construct(CommandInterface $command, array $options) |
9 |
|
{ |
10 |
|
parent::__construct($command, $options); |
11 |
|
$this->message = sprintf("Invalid command options. Options for command %1s: %2s", |
12 |
|
get_class($command), |
13 |
|
json_encode($options) |
14 |
|
); |
15 |
|
} |
16 |
|
} |
src/Command/Response/InvalidResponseException.php 1 location
|
@@ 16-23 (lines=8) @@
|
13 |
|
*/ |
14 |
|
private $response; |
15 |
|
|
16 |
|
public function __construct(CommandInterface $command, $response) |
17 |
|
{ |
18 |
|
parent::__construct(sprintf("Invalid command response. Command %1s got: %2s", |
19 |
|
get_class($command), |
20 |
|
json_encode($response) |
21 |
|
)); |
22 |
|
$this->response = $response; |
23 |
|
} |
24 |
|
|
25 |
|
/** |
26 |
|
* Get actual response (if any) that triggered this exception |