public class ThrowableSuppressingRunnable extends java.lang.Object implements RunnableContainer, java.lang.Runnable
ExceptionUtils.handleException(Throwable)
.Constructor and Description |
---|
ThrowableSuppressingRunnable(java.lang.Runnable task)
Constructs a new ThrowableSurpressingRunnable with the provided task.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Runnable |
getContainedRunnable()
Call to get the contained runnable within the wrapper.
|
void |
run() |
public ThrowableSuppressingRunnable(java.lang.Runnable task)
null
, when this is run no operation will occur.task
- task to be executed and have exceptions prevented from being thrownpublic void run()
run
in interface java.lang.Runnable
public java.lang.Runnable getContainedRunnable()
RunnableContainer
getContainedRunnable
in interface RunnableContainer
null
if none is contained