Class DelegatingErrorHandlingRunnable
java.lang.Object
org.springframework.scheduling.support.DelegatingErrorHandlingRunnable
- All Implemented Interfaces:
Runnable
Runnable wrapper that catches any exception or error thrown from its
delegate Runnable and allows an
ErrorHandler
to handle it.- Since:
- 3.0
- Author:
- Juergen Hoeller, Mark Fisher
-
Constructor Summary
ConstructorDescriptionDelegatingErrorHandlingRunnable
(Runnable delegate, ErrorHandler errorHandler) Create a new DelegatingErrorHandlingRunnable. -
Method Summary
-
Constructor Details
-
DelegatingErrorHandlingRunnable
Create a new DelegatingErrorHandlingRunnable.- Parameters:
delegate
- the Runnable implementation to delegate toerrorHandler
- the ErrorHandler for handling any exceptions
-
-
Method Details