1 | <?php declare(strict_types=1); |
||
15 | final class HttpExceptionsMiddleware implements MiddlewareInterface |
||
16 | { |
||
17 | use PreTrait; |
||
18 | use PostTrait; |
||
19 | |||
20 | /** |
||
21 | * @return int |
||
22 | */ |
||
23 | 1 | public function priority(): int |
|
27 | |||
28 | /** |
||
29 | * When $throwable is a ResponseException this method will turn it into a |
||
30 | * HTTP status code specific exception. |
||
31 | * |
||
32 | * @param Throwable $throwable |
||
33 | * @param array $options |
||
34 | * @return CancellablePromiseInterface |
||
35 | */ |
||
36 | 72 | public function error(Throwable $throwable, array $options = []): CancellablePromiseInterface |
|
44 | } |
||
45 |