Skip to Content
Former Member
Oct 02, 2007 at 11:28 AM

How to catch an error message that raises an exception?



Here is the problem:

Function_1 calls Function_2 without providing exceptions in the call. Function_2 raises an exception (message e(xxx) raising yyy) and because it isnt handled by function_1 a nasty error message is displayed.

Question - how to catch that error message when calling function_1?

Even more - I am not sure wether other errors that arent treated in the code may pop up during the function module execution. It there a proof way to catch all of them?

I was considering TRY/CATCH but Im not sure about the exact usage of this block in this particular case.

Thanks for your help.