At the mockup exam you get 4 options and you have to pick one. I taught myself the rule:
if a catch block throws an exception then ignore that catch block & and look to the upper catch.
Code:
catch(AnotherException $e)
{
$a->somethingElse();
}
will throw error go to the next catch block
Code:
catch(MyException $e)
{
print "Caught Exception";
}
This will never be caught cause it will catch exception from the MyException class.
Code:
catch(Exception $e)
{
print "Didn't catch the Exception!";
}
This last catch, catches every error.
That's why I think the result is "Didn't catch the Exception!".