Package org.dajlab.bricksetapi.v3.vo
Enum MessageEnum
- java.lang.Object
-
- java.lang.Enum<MessageEnum>
-
- org.dajlab.bricksetapi.v3.vo.MessageEnum
-
- All Implemented Interfaces:
Serializable,Comparable<MessageEnum>
public enum MessageEnum extends Enum<MessageEnum>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DAILY_API_LIMIT_EXCEEDEDINVALID_API_KEYINVALID_USER_HASHINVALID_USERNAME_OR_PASSWORDNO_VALID_PARAMETERSPARAMETER_ERRORTECHNICAL_ERROR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage()static MessageEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static MessageEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INVALID_API_KEY
public static final MessageEnum INVALID_API_KEY
-
INVALID_USERNAME_OR_PASSWORD
public static final MessageEnum INVALID_USERNAME_OR_PASSWORD
-
INVALID_USER_HASH
public static final MessageEnum INVALID_USER_HASH
-
PARAMETER_ERROR
public static final MessageEnum PARAMETER_ERROR
-
NO_VALID_PARAMETERS
public static final MessageEnum NO_VALID_PARAMETERS
-
DAILY_API_LIMIT_EXCEEDED
public static final MessageEnum DAILY_API_LIMIT_EXCEEDED
-
TECHNICAL_ERROR
public static final MessageEnum TECHNICAL_ERROR
-
-
Method Detail
-
values
public static MessageEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MessageEnum c : MessageEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MessageEnum valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getMessage
public String getMessage()
-
-