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