| 1 | <?php |
||
| 13 | class ErrorException extends \ErrorException { |
||
| 14 | protected $context; |
||
| 15 | |||
| 16 | protected $backtrace; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Initialize an instance of the {@link ErrorException} class. |
||
| 20 | * |
||
| 21 | * @param string $message The error message. |
||
| 22 | * @param int $number The error number. |
||
| 23 | * @param int $filename The file where the error occurred. |
||
| 24 | * @param string $line The line number in the file. |
||
| 25 | * @param int $context The currently defined variables when the error occured. |
||
| 26 | * @param array $backtrace A debug backtrace from when the error occurred. |
||
| 27 | */ |
||
| 28 | 5 | public function __construct($message, $number, $filename, $line, $context, $backtrace = []) { |
|
| 33 | |||
| 34 | /** |
||
| 35 | * Get the debug backtrace from the error. |
||
| 36 | * |
||
| 37 | * @return array Returns the backtrace. |
||
| 38 | */ |
||
| 39 | public function getBacktrace() { |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Get the error context. |
||
| 45 | * |
||
| 46 | * @return int |
||
| 47 | */ |
||
| 48 | public function getContext() { |
||
| 51 | } |