From e2299fe3a4f3c14a777dab2d5dd510cf95aeb9fa Mon Sep 17 00:00:00 2001 From: Oscar Date: Tue, 23 May 2023 10:23:17 +0200 Subject: [PATCH] add root namespace to Exception It solves the error message: Class "Codedge\Fpdf\Fpdf\Exception" not found --- src/Fpdf/Fpdf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fpdf/Fpdf.php b/src/Fpdf/Fpdf.php index 1350877..aafb596 100755 --- a/src/Fpdf/Fpdf.php +++ b/src/Fpdf/Fpdf.php @@ -270,7 +270,7 @@ function AliasNbPages($alias='{nb}') function Error($msg) { // Fatal error - throw new Exception('FPDF error: '.$msg); + throw new \Exception('FPDF error: '.$msg); } function Close()