Package org.km3net.clb.remote
Enum ClbError.ErrorCode
- java.lang.Object
-
- java.lang.Enum<ClbError.ErrorCode>
-
- org.km3net.clb.remote.ClbError.ErrorCode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ClbError.ErrorCode>
- Enclosing class:
- ClbError
public static enum ClbError.ErrorCode extends java.lang.Enum<ClbError.ErrorCode>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClbError.ErrorCode
byCode(int code)
int
getCode()
java.lang.String
getDesc()
java.lang.String
toString()
static ClbError.ErrorCode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ClbError.ErrorCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final ClbError.ErrorCode NONE
-
UNKNOWN
public static final ClbError.ErrorCode UNKNOWN
-
SYSTEM
public static final ClbError.ErrorCode SYSTEM
-
INV_ARG
public static final ClbError.ErrorCode INV_ARG
-
INV_STATE
public static final ClbError.ErrorCode INV_STATE
-
RES_EXH
public static final ClbError.ErrorCode RES_EXH
-
NOT_IMPL
public static final ClbError.ErrorCode NOT_IMPL
-
TIMEOUT
public static final ClbError.ErrorCode TIMEOUT
-
OVERFLOW
public static final ClbError.ErrorCode OVERFLOW
-
NO_DEV
public static final ClbError.ErrorCode NO_DEV
-
DEV_BUSY
public static final ClbError.ErrorCode DEV_BUSY
-
BUS
public static final ClbError.ErrorCode BUS
-
PROTOCOL
public static final ClbError.ErrorCode PROTOCOL
-
DEV_FAIL
public static final ClbError.ErrorCode DEV_FAIL
-
NOT_SUP
public static final ClbError.ErrorCode NOT_SUP
-
NOT_EXIST
public static final ClbError.ErrorCode NOT_EXIST
-
-
Method Detail
-
values
public static ClbError.ErrorCode[] 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 (ClbError.ErrorCode c : ClbError.ErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClbError.ErrorCode 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
-
getCode
public int getCode()
-
getDesc
public java.lang.String getDesc()
-
byCode
public static ClbError.ErrorCode byCode(int code)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<ClbError.ErrorCode>
-
-