1 | <?php declare(strict_types=1); |
||
8 | final class ApiErrorException extends Exception |
||
9 | { |
||
10 | /** |
||
11 | * @var array |
||
12 | */ |
||
13 | private $context = []; |
||
14 | |||
15 | public static function create(string $message, int $code, Throwable $previous): self |
||
19 | |||
20 | public static function createWithErrors(string $message, int $code, array $errors, Throwable $previous): self |
||
26 | |||
27 | public function getContext(): array |
||
31 | |||
32 | private function setContext(array $context) |
||
36 | } |
||
37 |