Get the exeption error description

Поиск
Список
Период
Сортировка
От Paolo Saudin
Тема Get the exeption error description
Дата
Msg-id 002f01c79dce$f48020d0$dd806270$@it
обсуждение исходный текст
Ответ на Re: OIDs - file objects, are damaged by PostgreSQL.  ("Purusothaman A" <purusothaman.a@gmail.com>)
Список pgsql-general

Hi,

Is there a way to know the error description / message in a BEGIN END block in a plpgsql functioin as in the ‘Appendix A. PostgreSQL Error Codes’ ?

I would like to pass it back to the function caller

 

DECLARE

  the_error   varchar;     

BEGIN

                ……  …….   …..

                ……  …….   …..

 

      EXCEPTION WHEN OTHERS THEN

the_error :=  ERROR DESCRIPTION; ?

      END;

 

Thanks,

Paolo

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

Предыдущее
От: Marek Lewczuk
Дата:
Сообщение: Re: the future of pljava development
Следующее
От: Marek Lewczuk
Дата:
Сообщение: Re: the future of pljava development