| Total Complexity | 1 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 13 | class UserException extends ApplicationException |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * The base offset for user-defined error codes. |
||
| 17 | */ |
||
| 18 | private const BASE_CODE_OFFSET = 5000; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Constructor for UserException. |
||
| 22 | * |
||
| 23 | * @param int $code the user-defined error code (will be offset by 5000) |
||
| 24 | * @param string $message the error message |
||
| 25 | * @param null|\Throwable $previous the previous exception, if any |
||
| 26 | */ |
||
| 27 | 1 | public function __construct(int $code, string $message, ?\Throwable $previous = null) |
|
| 33 |