Package jadex.future
Class DuplicateResultException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jadex.future.DuplicateResultException
- All Implemented Interfaces:
Serializable
Exception indicating that the result of a future was set twice.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Object
The first result.protected IFuture
<?> The future.protected Object
The second result.protected int
The type.static final int
Two exceptions.static final int
First exception then result.static final int
First result then exception.static final int
Two results. -
Constructor Summary
ConstructorsConstructorDescriptionDuplicateResultException
(int type, IFuture<?> future, Object first, Object second) Create a duplicate result exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
TYPE_RESULT_RESULT
public static final int TYPE_RESULT_RESULTTwo results.- See Also:
-
TYPE_RESULT_EXCEPTION
public static final int TYPE_RESULT_EXCEPTIONFirst result then exception.- See Also:
-
TYPE_EXCEPTION_RESULT
public static final int TYPE_EXCEPTION_RESULTFirst exception then result.- See Also:
-
TYPE_EXCEPTION_EXCEPTION
public static final int TYPE_EXCEPTION_EXCEPTIONTwo exceptions.- See Also:
-
type
protected int typeThe type. -
future
The future. -
first
The first result. -
second
The second result.
-
-
Constructor Details
-
DuplicateResultException
Create a duplicate result exception.
-
-
Method Details
-
getFuture
Get the future. -
toString
Get a string representation. -
printStackTrace
public void printStackTrace()Prints also stack trace of first exception, if available.- Overrides:
printStackTrace
in classThrowable
-