public abstract class SafeRunnable
extends java.lang.Object
implements java.lang.Runnable
SafeRunnable class allows for a Runnable
 implementation to potentially throw and handle an exception.| Constructor and Description | 
|---|
SafeRunnable()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected abstract void | 
doRun()
Override this method to provide execution logic. 
 | 
protected void | 
handleException(java.lang.Throwable t)
Handle any exception thrown during execution. 
 | 
void | 
run()  | 
public final void run()
run in interface java.lang.Runnableprotected abstract void doRun()
                       throws java.lang.Throwable
java.lang.Throwableprotected void handleException(java.lang.Throwable t)
t - the Throwable thrown during execution