Class OperationOutcome<T>


  • public class OperationOutcome<T>
    extends java.lang.Object
    Class representing the outcome of an operation including the return value, a flag indicating success or failure, and the exception thrown by the operation if any.
    • Constructor Detail

      • OperationOutcome

        public OperationOutcome​(T result)
      • OperationOutcome

        public OperationOutcome​(T result,
                                OperationOutcomeStatus status,
                                java.lang.Exception exception)
    • Method Detail

      • getResult

        public T getResult()
        The result of the operation.
        Returns:
      • setResult

        public void setResult​(T result)
        Sets the result of the operation.
        Parameters:
        result -
      • setStatus

        public void setStatus​(OperationOutcomeStatus status)
        Sets the status of the operation.
        Parameters:
        status -
      • getException

        public java.lang.Exception getException()
        Returns the exception thrown by this operation.
        Returns:
      • setException

        public void setException​(java.lang.Exception exception)
        Sets the exception thrown by this operation.
        Parameters:
        exception -