catch doesn't check for the existence of the Exception class, so avoid typo.
<?php
class MyException extends Exception
{
...
}
try
{
throw new MyException(...);
}
catch (MuException $e) // <--- typo
{
...
}
?>
You WON'T get
Fatal error: Class MuException could not be loaded ...
You WILL get
Fatal error: Uncaught exception 'MyException' ...