public enum ErrorCode extends Enum<ErrorCode>
| Enum Constant and Description |
|---|
ERROR_400_BAD_REQUEST |
ERROR_404_NOT_FOUND |
ERROR_409_CONFLICT |
ERROR_500_INTERNAL_SERVER_ERROR |
| Modifier and Type | Method and Description |
|---|---|
int |
code() |
static ErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorCode ERROR_400_BAD_REQUEST
public static final ErrorCode ERROR_404_NOT_FOUND
public static final ErrorCode ERROR_409_CONFLICT
public static final ErrorCode ERROR_500_INTERNAL_SERVER_ERROR
public static ErrorCode[] values()
for (ErrorCode c : ErrorCode.values()) System.out.println(c);
public static ErrorCode 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 nullpublic int code()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.