From 89371733135fd641d3a3422a2f255025423777d7 Mon Sep 17 00:00:00 2001 From: "dorian.hodin" Date: Mon, 6 Mar 2023 16:32:24 +0100 Subject: [PATCH] Removing test line, API should be 100% functional 4 --- Source/API/script/ExceptionHandle/PDOError.php | 4 ++++ 1 file changed, 4 insertions(+) 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); }