| Total Complexity | 4 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class ClientException extends HttpException |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * Most common codes. |
||
| 21 | */ |
||
| 22 | public const BAD_DATA = 400; |
||
| 23 | public const UNAUTHORIZED = 401; |
||
| 24 | public const FORBIDDEN = 403; |
||
| 25 | public const NOT_FOUND = 404; |
||
| 26 | public const ERROR = 500; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Code and message positions are reverted. |
||
| 30 | * |
||
| 31 | * @param int $code |
||
| 32 | * @param string $message |
||
| 33 | * @param \Throwable|null $previous |
||
| 34 | */ |
||
| 35 | public function __construct(?int $code = null, string $message = '', ?\Throwable $previous = null) |
||
| 48 |