Exception-handling

Поиск
Список
Период
Сортировка
От Håkan Jacobsson
Тема Exception-handling
Дата
Msg-id 20061221100121.EJOZ10325.mxfep02.bredband.com@mxfep02
обсуждение исходный текст
Ответы Re: Exception-handling  (Dave Cramer <pg@fastcrypt.com>)
Список 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 по дате отправления:

Предыдущее
От: Didier BRETIN
Дата:
Сообщение: ant specif task for pg_dump and pg_restore
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: Exception-handling