Re: translating exception messages of postgresql functions
В списке pgsql-admin по дате отправления:
| От | Julius Tuskenis |
|---|---|
| Тема | Re: translating exception messages of postgresql functions |
| Дата | |
| Msg-id | 482B03B0.8060206@nsoft.lt обсуждение исходный текст |
| Ответ на | Re: translating exception messages of postgresql functions (Alvaro Herrera <alvherre@commandprompt.com>) |
| Ответы |
Re: translating exception messages of postgresql functions
|
| Список | pgsql-admin |
Alvaro Herrera rašė: > Julius Tuskenis wrote: > >> Hello, >> >> I'd like to ask how is translation of raised exceptions done in >> postgresql applications? >> > > You want it translated or not translated? > I want to translate the exception message. For example I raise an exception in pg function like RAISE EXCEPTION 'my exception', then in my application that calls the function I catch the exception. But before I show it to the user of application I have to translate it. How do I know what exception it is? As Tom Lane answered - the only way is to rely on message text. -- Julius Tuskenis Programavimo skyriaus vadovas UAB nSoft mob. +37068233050
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера