-
Improvement
-
Resolution: Fixed
-
Major
-
-
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.
- is related to
-
JENKINS-17757 IllegalStateException: Timer already cancelled from NodesCollector.scheduleCollectNow
-
- Resolved
-
- links to
Not catching exceptions in the listener call might be considered part of the API of some listeners. This is what enables my login rate limiter plugin