public static enum CommandException.Option extends Enum<CommandException.Option>
CommandRunner
.Enum Constant and Description |
---|
HIDE_MESSAGE
Hide the exception message.
|
RETHROW
Re-throw the exception rather than dealing with it.
|
SHOW_USAGE
Print basic CLI usage information.
|
STACK_TRACE
Print the stack-trace of the exception.
|
Modifier and Type | Method and Description |
---|---|
static CommandException.Option |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommandException.Option[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommandException.Option HIDE_MESSAGE
public static final CommandException.Option SHOW_USAGE
public static final CommandException.Option STACK_TRACE
public static final CommandException.Option RETHROW
public static CommandException.Option[] values()
for (CommandException.Option c : CommandException.Option.values()) System.out.println(c);
public static CommandException.Option valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2017 Pivotal Software, Inc.. All rights reserved.