News Feed
Jobs Feed
Sections




News Archive
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

PHPMaster.com: Create a Poll with PHPixie

DevShed: Introducing Mediator Classes in PHP 5

NetTuts.com: Create WordPress Plugins with OOP Techniques

IBM developerWorks: Setting up your own on-demand video site with PHP, Part 1

DZone.com: What you must know about PHP errors...


Community Events











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


opinion phpunit release database zendframework2 functional interview series development testing language podcast framework introduction rest symfony2 conference community example usergroup

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