public class DefaultFunctionExitHandler extends java.lang.Object implements FunctionExitHandler
System.exit(int)
.Constructor and Description |
---|
DefaultFunctionExitHandler() |
Modifier and Type | Method and Description |
---|---|
void |
exitWithError(java.lang.Exception error,
boolean debug)
Exit the function with an error.
|
void |
exitWithNoData()
Exit the function indicating no data was supplied.
|
void |
exitWithSuccess()
Exit the function with success.
|
public void exitWithError(java.lang.Exception error, boolean debug)
FunctionExitHandler
exitWithError
in interface FunctionExitHandler
error
- The errordebug
- Whether to output debug information before exitingpublic void exitWithSuccess()
FunctionExitHandler
exitWithSuccess
in interface FunctionExitHandler
public void exitWithNoData()
FunctionExitHandler
exitWithNoData
in interface FunctionExitHandler