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.ExitCodeSpecDefine mapping from exception to code.- Specified by:
mapin interfaceCommandRegistration.ExitCodeSpec- Parameters:
e- the exceptioncode- the exit code- Returns:
- a target spec for chaining
-
map
- Specified by:
mapin interfaceCommandRegistration.ExitCodeSpec- Returns:
-
and
Description copied from interface:CommandRegistration.ExitCodeSpecReturn a builder for chaining.- Specified by:
andin interfaceCommandRegistration.ExitCodeSpec- Returns:
- a builder for chaining
-