Mid-Atlantic Developer Conference


Please answer this simple SPAM challenge: one plus eight?
(Example: nine)

The Note You're Voting On

hweidmann at online dot de
3 years ago
catch doesn't check for the existence of the Exception class, so avoid typo.

class MyException extends Exception

      throw new
   catch (
MuException $e) // <--- typo

You WON'T get
   Fatal error: Class MuException could not be loaded ...

You WILL get
   Fatal error: Uncaught exception 'MyException' ...

<< Back to user notes page

To Top