qqq
This commit is contained in:
@@ -123,8 +123,6 @@ class ErrorHandler extends Component implements ErrorInterface
|
|||||||
trigger_print_error($exception);
|
trigger_print_error($exception);
|
||||||
|
|
||||||
event(new OnSystemError());
|
event(new OnSystemError());
|
||||||
|
|
||||||
$this->sendError($exception->getMessage(), $exception->getFile(), $exception->getLine());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -141,17 +139,4 @@ class ErrorHandler extends Component implements ErrorInterface
|
|||||||
|
|
||||||
debug_print_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT);
|
debug_print_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param $message
|
|
||||||
* @param $file
|
|
||||||
* @param $line
|
|
||||||
* @param int $code
|
|
||||||
* @return false|string
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
public function sendError($message, $file, $line, int $code = 500): bool|string
|
|
||||||
{
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,13 +16,4 @@ namespace Kiri\Error;
|
|||||||
interface ErrorInterface
|
interface ErrorInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
|
||||||
* @param $message
|
|
||||||
* @param $file
|
|
||||||
* @param $line
|
|
||||||
* @param int $code
|
|
||||||
* @return mixed
|
|
||||||
*/
|
|
||||||
public function sendError($message, $file, $line, int $code = 500): mixed;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user