translating exception messages of postgresql functions

From: Julius Tuskenis <julius(at)nsoft(dot)lt>
To: pgsql-admin(at)postgresql(dot)org
Subject: translating exception messages of postgresql functions
Date: 2008-05-14 14:32:23
Message-ID: 482AF7F7.5090309@nsoft.lt
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Alvaro Herrera 2008-05-14 14:46:27 Re: translating exception messages of postgresql functions
Previous Message Alvaro Herrera 2008-05-14 00:49:33 Re: Deadlocks ?