Discussions related to Visual Prolog
Eftychios
Posts: 14
Joined: 19 Feb 2014 10:37

Try catch

Unread post 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?
User avatar
Thomas Linder Puls
VIP Member
Posts: 1399
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls »

Have you read the Exception Handling tutorial?
Regards Thomas Linder Puls
PDC
Post Reply