Interface CommandExitCode
- All Known Implementing Classes:
CommandExitCode.DefaultCommandExitCode
public interface CommandExitCode
Interface representing an exit code in a command.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets a function mappings from exceptions to exit codes.static CommandExitCode
of()
Gets an instance of a defaultCommandExitCode
.static CommandExitCode
Gets an instance of a defaultCommandExitCode
.
-
Method Details
-
getMappingFunctions
Gets a function mappings from exceptions to exit codes.- Returns:
- function mappings
-
of
Gets an instance of a defaultCommandExitCode
.- Returns:
- a command exit code
-
of
Gets an instance of a defaultCommandExitCode
.- Parameters:
functions
- the function mappings- Returns:
- a command exit code
-