Exception-handling - Mailing list pgsql-jdbc

From Håkan Jacobsson
Subject Exception-handling
Date
Msg-id 20061221100121.EJOZ10325.mxfep02.bredband.com@mxfep02
Whole thread Raw
Responses Re: Exception-handling  (Dave Cramer <pg@fastcrypt.com>)
List pgsql-jdbc
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?



pgsql-jdbc by date:

Previous
From: Didier BRETIN
Date:
Subject: ant specif task for pg_dump and pg_restore
Next
From: Dave Cramer
Date:
Subject: Re: Exception-handling