translating exception messages of postgresql functions

Поиск
Список
Период
Сортировка
От Julius Tuskenis
Тема translating exception messages of postgresql functions
Дата
Msg-id 482AF7F7.5090309@nsoft.lt
обсуждение исходный текст
Ответы Re: translating exception messages of postgresql functions  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: translating exception messages of postgresql functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
Hello,

I'd like to ask how is translation of raised exceptions done in
postgresql applications?   In Sybase ASA you can specify the error
number when raising it, but in postgresql theres just exception message.
As I've read - postgresql always generates P0001 SQLSTATE code for
raised exceptions. Have enyone tried to distinguish one exception from
the other in the application?

--
Julius Tuskenis
Programavimo skyriaus vadovas
UAB nSoft
mob. +37068233050


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Deadlocks ?
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: translating exception messages of postgresql functions