Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-21224

Catch all errors thrown by listeners

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • 2.324

      Inspired by JENKINS-17757. hudson.Util should have a convenience method to call a listener method (as a Runnable? for future lambdas) catching any RuntimeException or LinkageError and politely reporting the error so the caller (e.g. SlaveComputer.setChannel) can continue—maybe even blacklisting the listener for future calls so you do not fill up your log, listing the plugin name and version owning the listener class, etc.

            jglick Jesse Glick
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: