net.sourceforge.obby4j
Enum Net6LoginException.ErrorCode

java.lang.Object
  extended by java.lang.Enum<Net6LoginException.ErrorCode>
      extended by net.sourceforge.obby4j.Net6LoginException.ErrorCode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Net6LoginException.ErrorCode>
Enclosing class:
Net6LoginException

public static enum Net6LoginException.ErrorCode
extends java.lang.Enum<Net6LoginException.ErrorCode>

All net6 and obby error codes known to this class.


Enum Constant Summary
NET6_ERROR_MAX
          Maximum error code reported by net6.
NET6_ERROR_NAME_IN_USE
          User name already in use.
NET6_ERROR_NAME_INVALID
          Invalid user name.
OBBY_ERROR_COLOR_IN_USE
          Color already in use.
OBBY_ERROR_MAX
          Maximum error code reported by obby.
OBBY_ERROR_PROTOCOL_MISMATCH
          Protocol mismatch (invalid command, wrong number of parameters, etc.).
OBBY_ERROR_WRONG_GLOBAL_PASSWORD
          Wrong global/session password.
OBBY_ERROR_WRONG_USER_PASSWORD
          Wrong user password.
 
Method Summary
static Net6LoginException.ErrorCode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Net6LoginException.ErrorCode[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NET6_ERROR_MAX

public static final Net6LoginException.ErrorCode NET6_ERROR_MAX
Maximum error code reported by net6.


NET6_ERROR_NAME_IN_USE

public static final Net6LoginException.ErrorCode NET6_ERROR_NAME_IN_USE
User name already in use.


NET6_ERROR_NAME_INVALID

public static final Net6LoginException.ErrorCode NET6_ERROR_NAME_INVALID
Invalid user name.


OBBY_ERROR_COLOR_IN_USE

public static final Net6LoginException.ErrorCode OBBY_ERROR_COLOR_IN_USE
Color already in use.


OBBY_ERROR_MAX

public static final Net6LoginException.ErrorCode OBBY_ERROR_MAX
Maximum error code reported by obby.


OBBY_ERROR_PROTOCOL_MISMATCH

public static final Net6LoginException.ErrorCode OBBY_ERROR_PROTOCOL_MISMATCH
Protocol mismatch (invalid command, wrong number of parameters, etc.).


OBBY_ERROR_WRONG_GLOBAL_PASSWORD

public static final Net6LoginException.ErrorCode OBBY_ERROR_WRONG_GLOBAL_PASSWORD
Wrong global/session password.


OBBY_ERROR_WRONG_USER_PASSWORD

public static final Net6LoginException.ErrorCode OBBY_ERROR_WRONG_USER_PASSWORD
Wrong user password.

Method Detail

valueOf

public static Net6LoginException.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 name

values

public static final Net6LoginException.ErrorCode[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Net6LoginException.ErrorCode c : Net6LoginException.ErrorCode.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared