Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-2733

Improvement: Exception handling for zWatch._Gun

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 7.0.5
    • None

      Hi,

      I recently investigated a problem with a Combobx. After some debugging i found an exception found thrown (from an other component) during zWatch._Gun.fire() for an onResponse event. This exception was thrown by an earlier registered component and prevented any further event distribution. The exception itself was discarded silently because zWatch.Gun.fire() was started via onTimeout.

      So i added the attached patch that wraps the _invoke-calls with try/catch and if an exception is thrown the exception will be logged via zk.error() to get aware that something went wrong...

      It would be good to have this patch or something similar in the upstream release.

      Thanks & Bye,
      Chris

            Unassigned Unassigned
            christian christian
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: