Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-admin by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group