Catch individual exceptions

From: sconeek(at)gmail(dot)com
To: pgsql-general(at)postgresql(dot)org
Subject: Catch individual exceptions
Date: 2006-05-04 02:16:17
Message-ID: 1146708977.785078.109460@i40g2000cwc.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

hi all,
i want to capture individual sqlexceptions and for each different
exception i want to display a different message to the user. the
problem is how should i capture from the exception of its type-content
and then display a customised message.
all help appreciated.
thanks.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Artz 2006-05-04 03:26:56 Re: FATAL: database "dspace" does not exist"
Previous Message Joe Healy 2006-05-03 23:54:35 Re: psql is slow and it does not take much resources