public enum ErrorCode extends java.lang.Enum<ErrorCode> implements XdrElement
enum ErrorCode { ERR_MISC = 0, // Unspecific error ERR_DATA = 1, // Malformed data ERR_CONF = 2, // Misconfiguration error ERR_AUTH = 3, // Authentication failure ERR_LOAD = 4 // System overloaded };
Enum Constant and Description |
---|
ERR_AUTH |
ERR_CONF |
ERR_DATA |
ERR_LOAD |
ERR_MISC |
Modifier and Type | Method and Description |
---|---|
static ErrorCode |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static ErrorCode |
fromXdrBase64(java.lang.String xdr) |
static ErrorCode |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static ErrorCode |
valueOf(java.lang.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.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
toXdrBase64, toXdrByteArray
public static final ErrorCode ERR_MISC
public static final ErrorCode ERR_DATA
public static final ErrorCode ERR_CONF
public static final ErrorCode ERR_AUTH
public static final ErrorCode ERR_LOAD
public static ErrorCode[] values()
for (ErrorCode c : ErrorCode.values()) System.out.println(c);
public static ErrorCode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
public static ErrorCode decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static ErrorCode fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static ErrorCode fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException