translating exception messages of postgresql functions - Mailing list pgsql-admin

From Julius Tuskenis
Subject translating exception messages of postgresql functions
Date
Msg-id 482AF7F7.5090309@nsoft.lt
Whole thread Raw
Responses 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>)
List 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 by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Deadlocks ?
Next
From: Alvaro Herrera
Date:
Subject: Re: translating exception messages of postgresql functions