Exception-handling

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