Enum SignUpErrorCodes
- java.lang.Object
-
- java.lang.Enum<SignUpErrorCodes>
-
- com.smartfoxserver.v2.components.signup.SignUpErrorCodes
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SignUpErrorCodes>
public enum SignUpErrorCodes extends java.lang.Enum<SignUpErrorCodes>
Provides several error codes that are associated with customizable error messages.- See Also:
SignUpConfiguration.errorMessages
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SignUpErrorCodes
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SignUpErrorCodes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MISSING_USERNAME
public static final SignUpErrorCodes MISSING_USERNAME
-
USERNAME_TOO_SHORT
public static final SignUpErrorCodes USERNAME_TOO_SHORT
-
USERNAME_TOO_LONG
public static final SignUpErrorCodes USERNAME_TOO_LONG
-
USERNAME_ALREADY_IN_USE
public static final SignUpErrorCodes USERNAME_ALREADY_IN_USE
-
MISSING_PASSWORD
public static final SignUpErrorCodes MISSING_PASSWORD
-
PASSWORD_TOO_SHORT
public static final SignUpErrorCodes PASSWORD_TOO_SHORT
-
PASSWORD_TOO_LONG
public static final SignUpErrorCodes PASSWORD_TOO_LONG
-
MISSING_EMAIL
public static final SignUpErrorCodes MISSING_EMAIL
-
INVALID_EMAIL
public static final SignUpErrorCodes INVALID_EMAIL
-
EMAIL_ALREADY_IN_USE
public static final SignUpErrorCodes EMAIL_ALREADY_IN_USE
-
RECOVER_NO_USER
public static final SignUpErrorCodes RECOVER_NO_USER
-
ACTIVATION_NO_ID
public static final SignUpErrorCodes ACTIVATION_NO_ID
-
ACTIVATION_INVALID_CODE
public static final SignUpErrorCodes ACTIVATION_INVALID_CODE
-
GENERIC_DB_ERROR
public static final SignUpErrorCodes GENERIC_DB_ERROR
-
CUSTOM_ERROR
public static final SignUpErrorCodes CUSTOM_ERROR
-
-
Method Detail
-
values
public static SignUpErrorCodes[] 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 (SignUpErrorCodes c : SignUpErrorCodes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SignUpErrorCodes 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 namejava.lang.NullPointerException
- if the argument is null
-
-