Package io.micronaut.function.executor
Interface FunctionExitHandler
-
- All Known Implementing Classes:
DefaultFunctionExitHandler
public interface FunctionExitHandlerA strategy interface for handling exiting from a function when it is executed via the CLI.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexitWithError(java.lang.Exception error, boolean debug)Exit the function with an error.voidexitWithNoData()Exit the function indicating no data was supplied.voidexitWithSuccess()Exit the function with success.
-
-
-
Method Detail
-
exitWithError
void exitWithError(java.lang.Exception error, boolean debug)Exit the function with an error.- Parameters:
error- The errordebug- 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.
-
-