| Total Complexity | 3 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class LogicException extends PHPLogicException implements SevereExceptionInterface, LocatableExceptionInterface |
||
| 18 | { |
||
| 19 | use HasSeverity; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Exception that represents error in the program logic. |
||
| 23 | * This kind of exception should lead directly to a fix in your code. |
||
| 24 | * |
||
| 25 | * @param string $message The Exception message to throw. |
||
| 26 | * @param int $code The Exception code. |
||
| 27 | * @param \Throwable $previous The previous throwable used for the exception chaining. |
||
| 28 | */ |
||
| 29 | public function __construct(string $message = '', int $code = 0, Throwable $previous = null) |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * If required, set the file and line where the Exception was thrown. |
||
| 38 | * |
||
| 39 | * @param string $file |
||
| 40 | * @param int $line |
||
| 41 | * |
||
| 42 | * @return $this |
||
| 43 | */ |
||
| 44 | public function onFileLine(string $file, int $line): LocatableExceptionInterface |
||
| 54 |