Class ExecutionResult

java.lang.Object
org.axonframework.messaging.unitofwork.ExecutionResult

public class ExecutionResult extends Object
Class of objects that contain the result of an executed task.
Author:
Rene de Waele
  • Constructor Details

    • ExecutionResult

      public ExecutionResult(ResultMessage<?> result)
      Initializes an ExecutionResult from the given result.
      Parameters:
      result - the result message of an executed task
  • Method Details

    • getResult

      public ResultMessage<?> getResult()
      Return the execution result message.
      Returns:
      the execution result message
    • getExceptionResult

      public Throwable getExceptionResult()
      Get the execution result in case the result is an exception. If the execution yielded no exception this method returns null.
      Returns:
      The exception raised during execution of the task if any, null otherwise.
    • isExceptionResult

      public boolean isExceptionResult()
      Check if the result of the execution yielded an exception.
      Returns:
      true if execution of the task gave rise to an exception, false otherwise.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object