Package io.micronaut.function.executor
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 TypeMethodDescriptionvoid
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
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.
-