Try catch
Posted: 22 Feb 2014 19:29
Hello, I'm trying something like this but i get errors.
Actually i want to get the error and depending the error to show the appropriate message.
Any help please?
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.
Any help please?