Re: Exception-handling

Поиск
Список
Период
Сортировка
От Dave Cramer
Тема Re: Exception-handling
Дата
Msg-id 021E5266-98FD-4ECD-8CFD-FBEFE0CAA761@fastcrypt.com
обсуждение исходный текст
Ответ на Exception-handling  (Håkan Jacobsson <hakan.jacobsson99@bredband.net>)
Ответы Re: Exception-handling  (Roland Walter <roland.walter.rwa@gmx.net>)
Список pgsql-jdbc
The only general rule I adhere to is to make sure you clean up your
connections in a finally clause

Dave
On 21-Dec-06, at 5:01 AM, Håkan Jacobsson wrote:

> 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?
>
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 7: You can help support the PostgreSQL project by donating at
>
>                 http://www.postgresql.org/about/donate
>


В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Håkan Jacobsson
Дата:
Сообщение: Exception-handling
Следующее
От: Roland Walter
Дата:
Сообщение: Re: Exception-handling