News Feed
Sections




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

DevShed:
Building a Modular Exception Class in PHP 5
November 05, 2008 @ 14:03:49

DevShed has posted the final part of their series on handling exceptions in PHP5 applications. In this part they wrap up the creation of their modular exceptions class.

By means of a hands-on approach, this series walks you through using inheritance to build finely-tuned exception subclasses. These subclasses can be used to handle, via multiple "try-catch" blocks, several failures that might occur during the execution of a given web application.

They show how to handle MySQL exceptions with two different subclasses - one for the MySQL connection itself and another for problems with the results. They then merge these two classes into one and show how to use the new hybrid creation in a sample SQL connection and query.

0 comments voice your opinion now!
modular exception class php5 tutorial


blog comments powered by Disqus

Similar Posts

NetTuts.com: Letís TDD a Simple App in PHP

Pieter's Blog: Zend_Form with XML Tutorial

Zend Developer Zone: Build an Enterprise-Grade PHP Stack with Zend Server 5.0 and Oracle 11g

O'Reilly: Migrating Web-Based PHP Applications to Ajax

Inside DealTaker Blog: Kohana PHP 2.3.x Tutorial Part 1


Community Events

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


community framework series introduction api release performance php7 part2 example configure podcast conference interview laravel application opinion language voicesoftheelephpant symfony2

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