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 Extending The Base Exception Class
November 11, 2009 @ 10:50:00

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 of flexibility and power, particularly in three areas: customization, identification, and abstraction.

He looks at creating custom exception types (for easier handling and customization and how it can help with the abstraction of your applications.

0 comments voice your opinion now!
exception handling tutorial custom


blog comments powered by Disqus

Similar Posts

Alan Knowles' Blog: Getting Started with HTML_FlexyFramework, DataObjects and HTML_Template_Flexy

DevShed: An Introduction to the Observer Pattern in PHP

DevShed: Defining a Custom Function for File Uploaders with PHP 5

Rob Allen's Blog: A Tutorial Update & Extending ViewRenderer to Support Layout Templates

PHPFive.net: Creating a dynamic Google sitemap using the PHP5 SimpleXML extension


Community Events

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


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

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