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
Author:
graemerocher
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    exitWithError(Exception error, boolean debug)
    Exit the function with an error.
    void
    Exit the function indicating no data was supplied.
    void
    Exit the function with success.
  • Method Details

    • exitWithError

      void exitWithError(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.