Page 1 of 1

Try catch

Posted: 22 Feb 2014 19:29
by Eftychios
Hello, I'm trying something like this but i get errors.

Code: Select all

domains     errorResponder = (applicationWindow Source, exception::traceId TraceId).   predicates     onPushButtonClick : button::clickResponder.     getTraceInfo : (traceId TraceId) -> traceInfo TraceInfo.   clauses     onPushButtonClick(_Source) = button::defaultAction:-       try           [Body]     catch TraceId do          sendExceptionToClient(exception::getTraceInfo())     end try.
Actually i want to get the error and depending the error to show the appropriate message.

Any help please?

Posted: 23 Feb 2014 14:05
by Thomas Linder Puls
Have you read the Exception Handling tutorial?