public enum ErrorMessage extends Enum<ErrorMessage>
Enum Constant and Description |
---|
BAD_REQUEST |
CONFILICT |
FORBIDDEN |
NOT_FOUND |
UNAUTHORIZED |
Modifier and Type | Method and Description |
---|---|
String |
getMessage() |
void |
setMessage(String message) |
static ErrorMessage |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorMessage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorMessage BAD_REQUEST
public static final ErrorMessage UNAUTHORIZED
public static final ErrorMessage FORBIDDEN
public static final ErrorMessage NOT_FOUND
public static final ErrorMessage CONFILICT
public static ErrorMessage[] values()
for (ErrorMessage c : ErrorMessage.values()) System.out.println(c);
public static ErrorMessage 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 String getMessage()
public void setMessage(String message)
Copyright © 2010–2019. All rights reserved.