public abstract class AbstractRunnableWithException extends Object implements IRunnableWithException
Provides a basic implementation of IRunnableWithException
.
The concrete implementations have to set the exception
via setException(Exception)
in Runnable.run()
.
IRunnableWithResult
Modifier and Type | Field and Description |
---|---|
private Exception |
exception
An occurred exception.
|
Constructor and Description |
---|
AbstractRunnableWithException() |
Modifier and Type | Method and Description |
---|---|
Exception |
getException()
Returns an occurred exception.
|
protected void |
setException(Exception exception)
Sets the occurred exception.
|
private Exception exception
public Exception getException()
getException
in interface IRunnableWithException
protected void setException(Exception exception)
exception
- The occurred exception.