Class CommandRegistration.DefaultExitCodeSpec
java.lang.Object
org.springframework.shell.command.CommandRegistration.DefaultExitCodeSpec
- All Implemented Interfaces:
CommandRegistration.ExitCodeSpec
- Enclosing interface:
- CommandRegistration
public static class CommandRegistration.DefaultExitCodeSpec
extends Object
implements CommandRegistration.ExitCodeSpec
-
Method Summary
Modifier and TypeMethodDescriptionand()
Return a builder for chaining.Define mapping from exception to code.
-
Method Details
-
map
Description copied from interface:CommandRegistration.ExitCodeSpec
Define mapping from exception to code.- Specified by:
map
in interfaceCommandRegistration.ExitCodeSpec
- Parameters:
e
- the exceptioncode
- the exit code- Returns:
- a target spec for chaining
-
map
- Specified by:
map
in interfaceCommandRegistration.ExitCodeSpec
- Returns:
-
and
Description copied from interface:CommandRegistration.ExitCodeSpec
Return a builder for chaining.- Specified by:
and
in interfaceCommandRegistration.ExitCodeSpec
- Returns:
- a builder for chaining
-