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

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Catching internal error ID's to throw custom errors.
Дата
Msg-id 421C5F81.5060206@archonet.com
обсуждение исходный текст
Ответ на Catching internal error ID's to throw custom errors. Is it possib le in PostGreSQL?  (Stefan.Ardeleanu@siveco.ro)
Список pgsql-general
Stefan.Ardeleanu@siveco.ro 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 you want?

--
   Richard Huxton
   Archonet Ltd

В списке pgsql-general по дате отправления:

Предыдущее
От: Stefan.Ardeleanu@siveco.ro
Дата:
Сообщение: Catching internal error ID's to throw custom errors. Is it possib le in PostGreSQL?
Следующее
От: "Andre Schnoor"
Дата:
Сообщение: Re: Help with a very newbie question...