SmartEvent and Exceptions

Home Forums kbmMW SmartEvent and Exceptions

Viewing 1 reply thread
  • Author
    Posts
    • #56324
      Babis Michael
      Participant

      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

    • #56344
      kimbomadsen
      Keymaster

      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

Viewing 1 reply thread
  • You must be logged in to reply to this topic.