Skip to content

Commit

Permalink
add root namespace to Exception
Browse files Browse the repository at this point in the history
It solves the error message: Class "Codedge\Fpdf\Fpdf\Exception" not found
  • Loading branch information
oscar-ol authored May 23, 2023
1 parent b8ee6bc commit e2299fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fpdf/Fpdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e2299fe

Please sign in to comment.