public abstract static class Async.ThrowingRunnable extends Object implements Runnable
Runnable
, but allows the runOrThrow()
method to throw an exception.
If the exception is an instance of RuntimeException
, then it will be re-thrown, otherwise it will be
simply logged.
Constructor and Description |
---|
ThrowingRunnable() |
Modifier and Type | Method and Description |
---|---|
void |
run() |
abstract void |
runOrThrow() |
public ThrowingRunnable()