| От | Stephan Szabo |
|---|---|
| Тема | Re: trap for any exception |
| Дата | |
| Msg-id | 20071115103448.S32121@megazone.bigpanda.com обсуждение |
| Ответ на | Re: trap for any exception ("Sabin Coanda" <sabin.coanda@deuromedia.ro>) |
| Ответы |
Re: trap for any exception
|
| Список | pgsql-sql |
On Thu, 15 Nov 2007, Sabin Coanda wrote: > > > > I read 37.7.5. Trapping Errors, but the syntax requires to write > > explicitly the exception condition, and not a generic one. > > > > Is it possible to build a generic trap or do you know a workaround for > > that ? > > > Sorry, I found the OTHERS condition that trap any error. > > But the question still remains to find how could I interpret it and found > the error code and message ? I think you'll want to look at SQLSTATE and SQLERRM inside the exception handler.
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера