News Feed
Sections




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

DevShed:
Sub Classing Exceptions in PHP 5
October 15, 2008 @ 12:06:24

DevShed has start up a new series today with the first part in a four-part series looking at exception handling in PHP5.

If you do any serious programming, whether it's in PHP 5 or some other language, you've needed to know how to handle run time errors and other "exceptional" conditions. You can do this by making your program throw generic exceptions. Or you can unlock the potential of PHP 5 and learn how to create custom exceptions, which is the subject of this four-part series.

In this first part they get you started with exceptions, showing how to throw them and catch them correctly (try/catch). They put it to good use in an example catching exceptions thrown from a MySQL connection and select.

0 comments voice your opinion now!
php5 exception tutorial subclass try catch


blog comments powered by Disqus

Similar Posts

Idrish Laxmidhar's Blog: How to send mail from Localhost with XAMPP and mercury/32

Stefan Mischook's Blog: Object Oriented PHP Tutorial Updated

PHPit.net: Book Review: PHP5 Recipes: A Problem-Solution Approach

Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 1)

SitePoint PHP Blog: 13 Steps to Get eZ Publish 5.x to Work on Homestead


Community Events

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


list version security release framework library api series language opinion podcast laravel introduction extension example interview community laravel5 php7 voicesoftheelephpant

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