org.ferris.net
Enum NetExceptionCode
java.lang.Object
java.lang.Enum<NetExceptionCode>
org.ferris.net.NetExceptionCode
- All Implemented Interfaces:
- Serializable, Comparable<NetExceptionCode>
public enum NetExceptionCode
- extends Enum<NetExceptionCode>
Defines error codes and messages for exceptions.
- Author:
- Mike Remijan
NET00001
public static final NetExceptionCode NET00001
NET00002
public static final NetExceptionCode NET00002
NET00003
public static final NetExceptionCode NET00003
NET00004
public static final NetExceptionCode NET00004
NET00005
public static final NetExceptionCode NET00005
NET00006
public static final NetExceptionCode NET00006
values
public static NetExceptionCode[] 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 (NetExceptionCode c : NetExceptionCode.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static NetExceptionCode 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
getMessage
public abstract String getMessage(Object... messageParams)
Copyright © Jun 11, 2009-2011 The Ferris Foundation. All Rights Reserved.