diff --git a/Source/API/script/ExceptionHandle/PDOError.php b/Source/API/script/ExceptionHandle/PDOError.php index 871a115..8afc5ea 100644 --- a/Source/API/script/ExceptionHandle/PDOError.php +++ b/Source/API/script/ExceptionHandle/PDOError.php @@ -9,9 +9,13 @@ use Throwable; class PDOError extends HttpSpecializedException { protected string $title = "PDO connection failed"; + protected string $file; + protected int $line; public function __construct(ServerRequestInterface $request,string $message,?Throwable $previous = null) { + $this->file = $previous->getFile(); + $this->line = $previous->getLine(); parent::__construct($request,$message,$previous); }