[GENERAL] So maybe SQLERRM? Sb knows how to check it?
Maybe I ask another way. In Oracle there is a variable SQLERRM, where error message is placed. How to get some message in PostgreSQL? I searched documentation 3 or 5 times, and Google, and wrote on forums topics and I have enough. --
[GENERAL] Problem with catching my own exception messages.
I want to write a function that returns a raise message catched by: EXCEPTION WHEN RAISE_EXCEPTION THEN RETURN . If exception was raise like this: RAISE EXCEPTION 'some exception'; and I want to get 'some exception', so what should I write instead of . ???