News Feed
Sections




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

PHPBuilder:
A Primer On Postgres Exception Handling For The PHP Developer
November 07, 2007 @ 06:01:00

On PHPBuilder, Robert Bernier has started writing a series of articles on Postgres exception handling. In this one, covers the basics of exception handling for PHP developers.
Postgres exceptions are quite different from PHP exceptions; whereas PHP 5 uses the traditional "Try And Catch" format, Postgres exceptions can only be defined, executed and processed inside the body of the function that triggered the exception.
Also in the article he covers RAISE statements, how Postgres handles them, and gives good practices on how to use them effectively as a method of troubleshooting errors.
0 comments voice your opinion now!
postgres exception handling trycatch raise postgres exception handling trycatch raise


blog comments powered by Disqus

Similar Posts

PHPFreaks.com: or die() must die

Slawek Lukasiewicz's Blog: Throwing Exception with Type Hinting Failed

PHPMaster.com: Patterns for Flexible View Handling, Part 1 - Working with Composites

Zend Developer Zone: Zend Framework Hidden Gems: Zend Plumbing

Jani Hartikainen's Blog: How to use built-in SPL exception classes for better error handling


Community Events

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


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

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