News Feed
Sections




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

Tibo Beijen's Blog:
Catching PHP Exceptions Except the unexpected
October 27, 2009 @ 10:21:43

Tibo Beijen has a new post to his blog today looking at exception handling starting with some of the basics and moving out to custom exception handing methods.

Before PHP5 one had to resort to specific return values or drastic measures like trigger_error(). Planning exceptions, I found out, is just as important as class design. At any point where a developer needs to handle the possibility of an exception being thrown he needs to know: what Exceptions can I expect and what Exceptions do I plan to catch? In this post I'll show some important aspects to consider when planning exceptions.

He starts off with a basic example of an exception, throwing it and catching it, as a part of a SOAP client sample and looks at things to catch, how to catch them and doing fun things like rethrowing and extending basic exception types.

0 comments voice your opinion now!
exceptions tutorial expect


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Migrating applications from PHP 4 to Zend Core 2.5 w/support for IBM Informix

PHPBuilder.com: PEAR HTML_Table: Displaying Tabular Data in PHP

Benjamin Eberlei: Composer and Azure Websites Git Deployment

Zend Developer Zone: Debugging PHP applications with xdebug

The Bakery: Six New Articles and Tutorials


Community Events

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


podcast series extension framework laravel feature voicesoftheelephpant laravel5 wordpress opinion api threedevsandamaybe introduction library interview community language release unittest development

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