By piccoloprincipe
via brandonsavage.net
Submitted: Jan 27 2013 / 07:47
In PHP (as well as many other object oriented languages), exceptions are simply objects, which can be extended and reused. PHP makes them special in the sense that only exceptions that inherit from the base class Exception are throwable by the interpreter (you cannot throw any generic object you create).
Add your comment