Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Exception-handling



Hi,

I'm working against a postgresql database (version 8.0 ).
I was wondering how to handle exceptions properly when doing 
database-related stuff, like queries, inserts etc.

Often when I get an exception (I just catch an SQL exception in the catch
clause) I get a message saying call getNextException(). Should I always add
this code in the catch clause? Or should I always add a catch for catching
postgresql-exceptions? Is there a general rule for this?





Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group