pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sabin Coanda <sabin.coanda@deuromedia.ro>
To: pgsql-sql@postgresql.org
Subject: trap for any exception
Date: Thu, 15 Nov 2007 15:45:20 +0200
Message-ID: <fhhihd$1h5j$1@news.hub.org> (raw)

Hi there,

I'd like to build a PL/pgSQL function which is able to generic trap any 
error, and interpret it.

I read 37.7.5. Trapping Errors, but the syntax requires to write explicitly 
the exception condition, and not a generic one.

Is it possible to build a generic trap or do you know a workaround for that 
?

TIA,
Sabin 





view thread (6+ messages)  latest in thread

Message-ID: <fhhihd$1h5j$1@news.hub.org>
Permalink:  ../fhhihd$1h5j$1@news.hub.org/
Also on:    postgresql.org/message-id/fhhihd$1h5j$1@news.hub.org

 · 

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-sql@postgresql.org
  Cc: sabin.coanda@deuromedia.ro
  Subject: Re: trap for any exception
  In-Reply-To: <fhhihd$1h5j$1@news.hub.org>

* 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