Package jadex.future

Class DuplicateResultException

All Implemented Interfaces:
Serializable

public class DuplicateResultException extends RuntimeException
Exception indicating that the result of a future was set twice.
See Also:
  • Field Details

    • TYPE_RESULT_RESULT

      public static final int TYPE_RESULT_RESULT
      Two results.
      See Also:
    • TYPE_RESULT_EXCEPTION

      public static final int TYPE_RESULT_EXCEPTION
      First result then exception.
      See Also:
    • TYPE_EXCEPTION_RESULT

      public static final int TYPE_EXCEPTION_RESULT
      First exception then result.
      See Also:
    • TYPE_EXCEPTION_EXCEPTION

      public static final int TYPE_EXCEPTION_EXCEPTION
      Two exceptions.
      See Also:
    • type

      protected int type
      The type.
    • future

      protected IFuture<?> future
      The future.
    • first

      protected Object first
      The first result.
    • second

      protected Object second
      The second result.
  • Constructor Details

    • DuplicateResultException

      public DuplicateResultException(int type, IFuture<?> future, Object first, Object second)
      Create a duplicate result exception.
  • Method Details

    • getFuture

      public IFuture<?> getFuture()
      Get the future.
    • toString

      public String toString()
      Get a string representation.
      Overrides:
      toString in class Throwable
    • printStackTrace

      public void printStackTrace()
      Prints also stack trace of first exception, if available.
      Overrides:
      printStackTrace in class Throwable