News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Brandon Savage's Blog:
Exceptional PHP Nesting Exceptions In PHP
November 12, 2009 @ 12:43:48

Brandon Savage continues his introductory series on exception handling in PHP with this new post to his blog. This time the focus is on methods for nesting exceptions.

In the last two entries we have talked about the concept of layer abstraction: that is, that exceptions should not be allowed to pass out of one layer and into another. So, when an exception is raised in the database layer it should be caught in the controller. But how do we go about making sure that exceptions raised in the database layer are properly recorded and processed, ensuring that we have error logging and don't simply silence our exceptions?

He looks first at general exception nesting then at extending the base Exception class to write more nested code (inside a class). He also touches on the nested exceptions that were included in the latest release of the PHP 5.3 series.

0 comments voice your opinion now!
exception nesting tutorial native


blog comments powered by Disqus

Similar Posts

Lorna Mitchell's Blog: ArrayAccess vs ArrayObject

Chris Hartjes' Blog: Tutorial: How to create a thread in vBulletin with a script

Zend Developer Zone: Manipulating Images with PHP and GraphicsMagick

Evan Sims' Blog: Web APIs by Example, Part I: Twitter

Evan Coury's Blog: Using Zend\Dbs TableGateway & HydratingResultSet to return rows as custom enties


Community Events

Don't see your event here?
Let us know!


yii2 framework language laravel composer symfony opinion project api community series part2 application podcast example php7 introduction programming list interview

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework