public class DuplicateResultException extends RuntimeException
Modifier and Type | Field and Description |
---|---|
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,
Object first,
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.
|
String |
toString()
Get a string representation.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace
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
public IFuture<?> getFuture()
public String toString()
public void printStackTrace()
printStackTrace
in class Throwable
Copyright © 2013. All Rights Reserved.