Brandon Savage's Blog: Exceptional PHP: Extending The Base Excep...

Courtesy PHPDeveloper.org  Wed, 11/11/2009 - 10:50

Brandon Savage has posted the next part of his series looking at exceptions in PHP.

This new article shows how to create a custom exception layer on top of the built-in handling.

One of the things that you can (and should) do with PHP exceptions is extend them to suit your own purposes.

While the base Exception class in PHP is neither abstract nor impossible to use on its own, extending exceptions give you a great amount...


 

More related items

Brandon Savage's Blog: Peer Review: Looking At...
Brandon Savage has posted his latest part of his "Peer Review" series. He takesa step back and looks at abstraction again, this time incorporating some of the suggestions other members of...

Brandon Savage's Blog: Peer Review: Looking Into...
Brandon Savage has posted his latest article in his series looking at refactoring a piece of code (starting here) focusing in on the abstraction already in the code and how it can be made...

Rethinking The Technical Resume - Brandon Savage
During my last job, I occasionally was invited to interview candidates for the web development team. Usually I’d receive a copy of their resume a few days beforehand with the instructions...


 

Post new comment

The content of this field is kept private and will not be shown publicly.
computer-internet.marc8.com