org.apache.hadoop.lib.server
Enum ServerException.ERROR
java.lang.Object
java.lang.Enum<ServerException.ERROR>
org.apache.hadoop.lib.server.ServerException.ERROR
- All Implemented Interfaces:
- Serializable, Comparable<ServerException.ERROR>, XException.ERROR
- Enclosing class:
- ServerException
@InterfaceAudience.Private
public static enum ServerException.ERROR
- extends Enum<ServerException.ERROR>
- implements XException.ERROR
Error codes use by the Server
class.
S01
public static final ServerException.ERROR S01
S02
public static final ServerException.ERROR S02
S03
public static final ServerException.ERROR S03
S04
public static final ServerException.ERROR S04
S05
public static final ServerException.ERROR S05
S06
public static final ServerException.ERROR S06
S07
public static final ServerException.ERROR S07
S08
public static final ServerException.ERROR S08
S09
public static final ServerException.ERROR S09
S10
public static final ServerException.ERROR S10
S11
public static final ServerException.ERROR S11
S12
public static final ServerException.ERROR S12
S13
public static final ServerException.ERROR S13
S14
public static final ServerException.ERROR S14
values
public static ServerException.ERROR[] 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 (ServerException.ERROR c : ServerException.ERROR.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ServerException.ERROR 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 name
NullPointerException
- if the argument is null
getTemplate
public String getTemplate()
- Returns the message template for the error code.
- Specified by:
getTemplate
in interface XException.ERROR
- Returns:
- the message template for the error code.
Copyright © 2014 Apache Software Foundation. All Rights Reserved.