public class DuplicateResultException
extends java.lang.RuntimeException
| Modifier and Type | Field and Description | 
|---|---|
| protected java.lang.Object | firstThe first result. | 
| protected IFuture<?> | futureThe future. | 
| protected java.lang.Object | secondThe second result. | 
| protected int | typeThe type. | 
| static int | TYPE_EXCEPTION_EXCEPTIONTwo exceptions. | 
| static int | TYPE_EXCEPTION_RESULTFirst exception then result. | 
| static int | TYPE_RESULT_EXCEPTIONFirst result then exception. | 
| static int | TYPE_RESULT_RESULTTwo 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.Throwablepublic void printStackTrace()
printStackTrace in class java.lang.Throwable