Interface FunctionExitHandler

  • All Known Implementing Classes:
    DefaultFunctionExitHandler

    public interface FunctionExitHandler
    A strategy interface for handling exiting from a function when it is executed via the CLI.
    Since:
    1.0
    • Method Detail

      • exitWithError

        void exitWithError​(java.lang.Exception error,
                           boolean debug)
        Exit the function with an error.
        Parameters:
        error - The error
        debug - Whether to output debug information before exiting
      • exitWithSuccess

        void exitWithSuccess()
        Exit the function with success.
      • exitWithNoData

        void exitWithNoData()
        Exit the function indicating no data was supplied.