Class ExecutionResult
java.lang.Object
org.axonframework.messaging.unitofwork.ExecutionResult
Class of objects that contain the result of an executed task.
- Author:
- Rene de Waele
-
Constructor Summary
ConstructorsConstructorDescriptionExecutionResult(ResultMessage<?> result) Initializes anExecutionResultfrom the givenresult. -
Method Summary
-
Constructor Details
-
ExecutionResult
Initializes anExecutionResultfrom the givenresult.- Parameters:
result- the result message of an executed task
-
-
Method Details
-
getResult
Return the execution result message.- Returns:
- the execution result message
-
getExceptionResult
Get the execution result in case the result is an exception. If the execution yielded no exception this method returnsnull.- Returns:
- The exception raised during execution of the task if any,
nullotherwise.
-
isExceptionResult
public boolean isExceptionResult()Check if the result of the execution yielded an exception.- Returns:
trueif execution of the task gave rise to an exception,falseotherwise.
-
equals
-
hashCode
public int hashCode() -
toString
-