public class DuplicateResultException
extends java.lang.RuntimeException
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
first
The first result.
|
protected IFuture<?> |
future
The future.
|
protected java.lang.Object |
second
The second result.
|
protected int |
type
The type.
|
static int |
TYPE_EXCEPTION_EXCEPTION
Two exceptions.
|
static int |
TYPE_EXCEPTION_RESULT
First exception then result.
|
static int |
TYPE_RESULT_EXCEPTION
First result then exception.
|
static int |
TYPE_RESULT_RESULT
Two results.
|
Constructor and Description |
---|
DuplicateResultException(int type,
IFuture<?> future,
java.lang.Object first,
java.lang.Object second)
Create a duplicate result exception.
|
Modifier and Type | Method and Description |
---|---|
IFuture<?> |
getFuture()
Get the future.
|
void |
printStackTrace()
Prints also stack trace of first exception, if available.
|
java.lang.String |
toString()
Get a string representation.
|
public static final int TYPE_RESULT_RESULT
public static final int TYPE_RESULT_EXCEPTION
public static final int TYPE_EXCEPTION_RESULT
public static final int TYPE_EXCEPTION_EXCEPTION
protected int type
protected IFuture<?> future
protected java.lang.Object first
protected java.lang.Object second
public DuplicateResultException(int type, IFuture<?> future, java.lang.Object first, java.lang.Object second)
public IFuture<?> getFuture()
public java.lang.String toString()
toString
in class java.lang.Throwable
public void printStackTrace()
printStackTrace
in class java.lang.Throwable