| 1 | <?php declare(strict_types=1); |
||
| 15 | final class HttpExceptionsMiddleware implements MiddlewareInterface |
||
| 16 | { |
||
| 17 | use PreTrait; |
||
| 18 | use PostTrait; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * When $throwable is a ResponseException this method will turn it into a |
||
| 22 | * HTTP status code specific exception. |
||
| 23 | * |
||
| 24 | * @param Throwable $throwable |
||
| 25 | * @param array $options |
||
| 26 | * @return CancellablePromiseInterface |
||
| 27 | * |
||
| 28 | * @ThirdLast() |
||
| 29 | */ |
||
| 30 | 72 | public function error( |
|
| 41 | } |
||
| 42 |