Package org.teamapps.dto
Enum SERVER_ERROR.Reason
- java.lang.Object
-
- java.lang.Enum<SERVER_ERROR.Reason>
-
- org.teamapps.dto.SERVER_ERROR.Reason
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SERVER_ERROR.Reason>
- Enclosing class:
- SERVER_ERROR
public static enum SERVER_ERROR.Reason extends java.lang.Enum<SERVER_ERROR.Reason>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CMD_REQUEST_TOO_LARGEEXCEPTIONSESSION_NOT_FOUND
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intjsonValue()static SERVER_ERROR.ReasonvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SERVER_ERROR.Reason[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SESSION_NOT_FOUND
public static final SERVER_ERROR.Reason SESSION_NOT_FOUND
-
EXCEPTION
public static final SERVER_ERROR.Reason EXCEPTION
-
CMD_REQUEST_TOO_LARGE
public static final SERVER_ERROR.Reason CMD_REQUEST_TOO_LARGE
-
-
Method Detail
-
values
public static SERVER_ERROR.Reason[] 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 (SERVER_ERROR.Reason c : SERVER_ERROR.Reason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SERVER_ERROR.Reason valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
jsonValue
public int jsonValue()
-
-