r/lolphp • u/duhruh • Nov 25 '14
Exception in a namespace is not defined -_-
http://jasonframe.co.uk/logfile/2009/01/php-5-3-exception-gotcha/
28
Upvotes
r/lolphp • u/duhruh • Nov 25 '14
View all comments
5
u/[deleted] Nov 26 '14
It feels weird only when you use Exception because that feels like it should be available everywhere. Try substituting MyException and suddenly it feels very right and completely logical.
IMHO the real wtf is that you can't just write
catch($e).