Class BaseExecutionResult

    • Method Detail

      • create

        public static ExecutionResult create​(boolean success,
                                             DispatcherResult object)
        Create a Success result with an object
        Parameters:
        success - true if successful
        object - result object
        Returns:
        success result containing the object
      • createSuccess

        public static ExecutionResult createSuccess​(DispatcherResult object)
        Create a Success result with an object
        Parameters:
        object - result object
        Returns:
        success result containing the object
      • createFailure

        public static ExecutionResult createFailure​(java.lang.Exception exception)
        Create a failure result with an exception
        Parameters:
        exception - exception
        Returns:
        failure result containing the exception
      • isSuccess

        public boolean isSuccess()
        Specified by:
        isSuccess in interface StatusResult
        Returns:
        true if the result was successful
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object