- This topic has 1 reply, 2 voices, and was last updated 3 years, 10 months ago by .
Viewing 1 reply thread
Viewing 1 reply thread
- You must be logged in to reply to this topic.
Hello,
Calling a SmartEvent with wrong parameters will not raise exception at runtime (only inside IDE);
eg.
[kbmMW_Event(‘DISCONNECT’), [mweoSync]]
procedure OnDisconnect(var a: string; var b: string);
———–
Event.Notify(‘DISCONNECT’, 5, 1);
or
Event.Notify(‘DISCONNECT’);
Thank you
Hi,
You can set events.ExceptionHandling to one of mweehIgnore,mweehLog,mweehExcept. It is default set to mweehIgnore.
Even when set to ignore, you can use the event handler OnException to silently catch the exception at runtime.
/Kim