I need to access an instance of JImage in a template and when calling
$image->getPath()
want to catch InvalidArgumentException in case the image file is not on disk.
I tried:
try{
echo $image->getPath();
}catch (Exception $e){
$test = 1;
}
But instead of catching the Exception the debugger always leads me to
/libraries/cms/error/page.php, function render(Exception $error)
What am I doing wrong?