public class DelegatingErrorHandlingRunnable
extends java.lang.Object
implements java.lang.Runnable
ErrorHandler
to handle it.Modifier and Type | Field and Description |
---|---|
private java.lang.Runnable |
delegate |
private ErrorHandler |
errorHandler |
Constructor and Description |
---|
DelegatingErrorHandlingRunnable(java.lang.Runnable delegate,
ErrorHandler errorHandler)
Create a new DelegatingErrorHandlingRunnable.
|
Modifier and Type | Method and Description |
---|---|
void |
run() |
java.lang.String |
toString() |
private final java.lang.Runnable delegate
private final ErrorHandler errorHandler
public DelegatingErrorHandlingRunnable(java.lang.Runnable delegate, ErrorHandler errorHandler)
delegate
- the Runnable implementation to delegate toerrorHandler
- the ErrorHandler for handling any exceptions