| От | Cima |
|---|---|
| Тема | error handling |
| Дата | |
| Msg-id | 003101c53fec$2698d870$f00110ac@doctorado1 обсуждение исходный текст |
| Ответы |
Re: error handling
|
| Список | pgsql-novice |
hi, im working with php 4 and postgresql 8 and i would like to know how to handle certain errors generated. in postgresql, i've written a stored function that selects a record from a table and in case no record is found i 'raise an exception'. fine, now in my php script i call that the stored function which works properly when there is a record but when the record doesnt exist, i would like to be able to place my own error message and not e.g 'fatal error, .....'. how do i capture(in php) the exception i raised in postgres so that i know the record doesnt exist? thanx.
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера