Re: BUG #16405: Exception P0004 not caught in EXCEPTION WHEN OTHERS
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: BUG #16405: Exception P0004 not caught in EXCEPTION WHEN OTHERS |
| Дата | |
| Msg-id | 6966.1588266265@sss.pgh.pa.us обсуждение |
| Ответ на | BUG #16405: Exception P0004 not caught in EXCEPTION WHEN OTHERS (PG Bug reporting form <noreply@postgresql.org>) |
| Ответы |
Re: BUG #16405: Exception P0004 not caught in EXCEPTION WHEN OTHERS
|
| Список | pgsql-bugs |
PG Bug reporting form <noreply@postgresql.org> writes:
> Excepted Behavior: P0004 exception is caught in EXCEPTION WHEN OTHERS,
> function returns text 'Hit the Other exception block'.
> Actual Behavior: P0004 exception is raised and remains uncaught.
That's intentional, per the documentation [1]:
The special condition name OTHERS matches every error type except
QUERY_CANCELED and ASSERT_FAILURE. (It is possible, but often unwise,
to trap those two error types by name.)
regards, tom lane
[1] https://www.postgresql.org/docs/current/plpgsql-control-structures.html#PLPGSQL-ERROR-TRAPPING
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера