Skip to content

Commit

Permalink
Update ErrorHandlerException.php
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane committed Jan 8, 2024
1 parent f098e82 commit 0a2151c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions webfiori/error/ErrorHandlerException.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php
namespace webfiori\error;

use Exception;
use ErrorException;
/**
* This class is used to represent PHP errors which was converted to exceptions.
*
* @author Ibrahim
*/
class ErrorHandlerException extends Exception {
class ErrorHandlerException extends ErrorException {
private $debugTrace;
/**
* Creates new instance of the class.
Expand All @@ -18,8 +18,8 @@ class ErrorHandlerException extends Exception {
*
* @param string $file The path to the file at which the error happened.
*/
public function __construct(string $message = "", int $code = 0, string $file = '') {
parent::__construct($message, $code);
public function __construct(string $message = "", int $code = 0, string $file = '', int $line = 0) {
parent::__construct($message, $code, $code, $file, $line);
$this->debugTrace = [];
$trace = debug_backtrace();
$line = null;
Expand Down

0 comments on commit 0a2151c

Please sign in to comment.