|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<CliUtils.Status> com.sonyericsson.hudson.plugins.metadata.cli.CliUtils.Status
public static enum CliUtils.Status
Status codes to be returned from the cli commands.
Enum Constant Summary | |
---|---|
ERR_BAD_CMD
Commandline status code indicating illegal commandline argument combinations. |
|
ERR_BAD_DATA
Commandline status code indicating a JsonUtils.ParseException . |
|
ERR_NO_ITEM
Commandline status code indicating CliUtils.NoItemException . |
|
ERR_NO_METADATA
Commandline status code indicating CliUtils.NoMetadataException . |
|
WARN_NO_SAVE
Commandline status indicating that the metadata could not be saved to disk. |
Method Summary | |
---|---|
int |
code()
The error code to return from the command. |
int |
httpStatus()
The HTTP status that should be set in the HTTP response if any. |
static CliUtils.Status |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static CliUtils.Status[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final CliUtils.Status ERR_NO_ITEM
CliUtils.NoItemException
. (-1)
public static final CliUtils.Status ERR_NO_METADATA
CliUtils.NoMetadataException
. (-2)
public static final CliUtils.Status ERR_BAD_CMD
public static final CliUtils.Status ERR_BAD_DATA
JsonUtils.ParseException
.
(2)
public static final CliUtils.Status WARN_NO_SAVE
Method Detail |
---|
public static CliUtils.Status[] values()
for (CliUtils.Status c : CliUtils.Status.values()) System.out.println(c);
public static CliUtils.Status valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic int code()
public int httpStatus()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |