public abstract class AbstractRunnableWithException extends java.lang.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 java.lang.Exception |
exception
An occurred exception.
|
Constructor and Description |
---|
AbstractRunnableWithException() |
Modifier and Type | Method and Description |
---|---|
java.lang.Exception |
getException()
Returns an occurred exception.
|
protected void |
setException(java.lang.Exception exception)
Sets the occurred exception.
|
public java.lang.Exception getException()
getException
in interface IRunnableWithException
protected void setException(java.lang.Exception exception)
exception
- The occurred exception.