Class CombineErrorHandler
java.lang.Object
org.jenkinsci.plugins.github.common.CombineErrorHandler
- All Implemented Interfaces:
ErrorHandler
With help of list of other error handlers handles exception.
If no one will handle it, exception will be wrapped to
CombineErrorHandler.ErrorHandlingException
and thrown by the handle method- Since:
- 1.19.0
- Author:
- lanwen (Merkushev Kirill)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classWrapper for the not handled by this handler exceptions -
Method Summary
Modifier and TypeMethodDescriptionstatic CombineErrorHandlerStatic factory to produce new instance of this handlerbooleanhandle(Exception e, Run<?, ?> run, TaskListener listener) Handles exception with help of other handlers.withHandlers(List<? extends ErrorHandler> handlers)
-
Method Details
-
errorHandling
Static factory to produce new instance of this handler- Returns:
- new instance
-
withHandlers
-
handle
Handles exception with help of other handlers. If no one will handle it, it will be thrown to the top level- Specified by:
handlein interfaceErrorHandler- Parameters:
e- exception to handle (log, ignore, process, rethrow)run- run object from the steplistener- listener object from the step- Returns:
- true if exception handled or rethrows it
-