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