Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
30 | 72 | public function error( |
|
31 | Throwable $throwable, |
||
32 | string $transactionId, |
||
33 | array $options = [] |
||
34 | ): CancellablePromiseInterface { |
||
35 | 72 | if (!($throwable instanceof ResponseException)) { |
|
36 | 1 | return reject($throwable); |
|
37 | } |
||
38 | |||
39 | 71 | return reject(ExceptionFactory::create($throwable->getResponse(), $throwable)); |
|
40 | } |
||
41 | } |
||
42 |