pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Julius Tuskenis <julius@nsoft.lt>
To: pgsql-admin@postgresql.org
Subject: translating exception messages of postgresql functions
Date: Wed, 14 May 2008 17:32:23 +0300
Message-ID: <482AF7F7.5090309@nsoft.lt> (raw)

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




view thread (8+ messages)  latest in thread

Message-ID: <482AF7F7.5090309@nsoft.lt>
Permalink:  ../482AF7F7.5090309@nsoft.lt/
Also on:    postgresql.org/message-id/482AF7F7.5090309@nsoft.lt

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: julius@nsoft.lt
  Subject: Re: translating exception messages of postgresql functions
  In-Reply-To: <482AF7F7.5090309@nsoft.lt>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox