News Feed
Sections




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

DevShed:
Intercepting Customized Exceptions in PHP 5
October 22, 2008 @ 10:24:41

DevShed continues their series looking at exceptions in PHP with this second part focusing on throwing and handling customized exceptions in your PHP5 application.

While the built-in exception system that comes bundled natively with PHP 5 is usually good enough to handle errors and other critical conditions during the execution of a given web application, it's worthwhile to mention that there are a number of additional cases where it is necessary to implement an exceptions system that can handle different failures in a more specific way.

They show how to trigger some basic custom exceptions and detail the creation of a class to handle catching these exceptions in a bit more OOP kind of way.

0 comments voice your opinion now!
php5 exception custom class tutorial throw handle


blog comments powered by Disqus

Similar Posts

PHPBuilder.com: Create a CAPTCHA Script with PHP

International PHP Magazine: Poll Question: The Biggest Advantage of PHP 5 is?

php|architect: Two New ART Articles (CakePHP and More Flex)

Daniel Cousineau's Blog: Hierarchical Data With PHP and MySQL

Jani Hartikainen's Blog: Decoupling models from the database: Data Access Object pattern in PHP


Community Events





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


refactor list language code unittest testing install series interview introduction community wordpress developer podcast opinion configure laravel threedevsandamaybe release framework

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