Re: [GENERAL] Catching internal error ID's to throw custom errors.

2005-02-23 Thread Richard Huxton
[EMAIL PROTECTED] wrote: I have a lot of plpgsql functions and I would like to catch the original postgresql error and, based on that value, to throw with a raise or something my custom error. The section "Trapping Errors" in the plpgsql chapter of the manuals covers this. Does this not do what yo

[GENERAL] Catching internal error ID's to throw custom errors. Is it possib le in PostGreSQL?

2005-02-23 Thread Stefan . Ardeleanu
Title: Catching internal error ID's to throw custom errors. Is it possible in PostGreSQL? I have a lot of plpgsql functions and I would like to catch the original postgresql error and, based on that value, to throw with a raise or something my custom error. In SQL Server, for example, I have t