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

Improvement: Exception handling for zWatch._Gun

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 7.0.5
    • Fix Version/s: None
    • Labels:
      None

      Description

      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

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated: