Re: translating exception messages of postgresql functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux