public enum ExitStatus extends Enum<ExitStatus>
Enum Constant and Description |
---|
ERROR_CONFIRMATION_REQUIRED
A potentially destructive command requires explicit confirmation that was
not present.
|
ERROR_INVALID_ARGUMENTS
Invalid input arguments or their combination.
|
ERROR_OTHER
Unknown error cause.
|
SUCCESS
The command was successful.
|
Modifier and Type | Field and Description |
---|---|
int |
code |
Modifier and Type | Method and Description |
---|---|
static ExitStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExitStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExitStatus SUCCESS
public static final ExitStatus ERROR_OTHER
public static final ExitStatus ERROR_INVALID_ARGUMENTS
public static final ExitStatus ERROR_CONFIRMATION_REQUIRED
public static ExitStatus[] values()
for (ExitStatus c : ExitStatus.values()) System.out.println(c);
public static ExitStatus 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 © 2016. All rights reserved.