Re: Throwing exceptions

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Throwing exceptions
Дата
Msg-id 467B0618.7070104@g2switchworks.com
обсуждение исходный текст
Ответ на Throwing exceptions  (Germán Hüttemann Arza <ghuttemann@gmail.com>)
Список pgsql-general
Germán Hüttemann Arza wrote:
> Hi,
>
> I need a way to throw a message in a function, when an exception occurs, but I
> don't want to write again and again the same message in every place I need to
> throw it. So, is there a way to handle this situation in a more general
> manner?

Why not create a table of error messages / numbers, then you can just
pull the message from the table?

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

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: Excell
Следующее
От: "Josh Tolley"
Дата:
Сообщение: Re: ORDER BY with exception