Interface CommandRegistration.ExitCodeSpec
- All Known Implementing Classes:
CommandRegistration.DefaultExitCodeSpec
- Enclosing interface:
- CommandRegistration
public static interface CommandRegistration.ExitCodeSpec
Spec defining an exit code.
-
Method Summary
Modifier and TypeMethodDescriptionand()
Return a builder for chaining.Define mapping from exception to code.
-
Method Details
-
map
Define mapping from exception to code.- Parameters:
e
- the exceptioncode
- the exit code- Returns:
- a target spec for chaining
-
map
- Parameters:
function
-- Returns:
-
and
Return a builder for chaining.- Returns:
- a builder for chaining
-