1 | <?php |
||
9 | class ErrorException extends \RuntimeException |
||
10 | { |
||
11 | /** |
||
12 | * @return string |
||
13 | */ |
||
14 | protected $logLevel; |
||
15 | |||
16 | /** |
||
17 | * @param string $message Error message |
||
18 | * @param int $code Internal code for the application error |
||
19 | * @param string $logLevel Log level of the error, from Psr\Log\LogLevel |
||
20 | */ |
||
21 | public function __construct(string $message, int $code, string $logLevel = LogLevel::ERROR) |
||
26 | |||
27 | public function getLogLevel(): string |
||
31 | } |
||
32 |