com.eurotech.framework.protocol.pcn
Enum PcnProtocolErrorCode
java.lang.Object
java.lang.Enum<PcnProtocolErrorCode>
com.eurotech.framework.protocol.pcn.PcnProtocolErrorCode
- All Implemented Interfaces:
- Serializable, Comparable<PcnProtocolErrorCode>
public enum PcnProtocolErrorCode
- extends Enum<PcnProtocolErrorCode>
ProtocolErrorCode holds the enumeration of valid error codes for the exception message. For each defined enum value, a corresponding message should be defined in the properties bundle named:
ProtocolExceptionMessagesBundle.properties.
INVALID_CONFIGURATION
public static final PcnProtocolErrorCode INVALID_CONFIGURATION
INVALID_DATA_ADDRESS
public static final PcnProtocolErrorCode INVALID_DATA_ADDRESS
INVALID_DATA_TYPE
public static final PcnProtocolErrorCode INVALID_DATA_TYPE
METHOD_NOT_SUPPORTED
public static final PcnProtocolErrorCode METHOD_NOT_SUPPORTED
NOT_AVAILABLE
public static final PcnProtocolErrorCode NOT_AVAILABLE
NOT_CONNECTED
public static final PcnProtocolErrorCode NOT_CONNECTED
TRANSACTION_FAILURE
public static final PcnProtocolErrorCode TRANSACTION_FAILURE
values
public static PcnProtocolErrorCode[] 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 (PcnProtocolErrorCode c : PcnProtocolErrorCode.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static PcnProtocolErrorCode 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
Copyright © 2013. All Rights Reserved.