Enum UinExceptionConstant
- java.lang.Object
-
- java.lang.Enum<UinExceptionConstant>
-
- io.mosip.kernel.idvalidator.uin.constant.UinExceptionConstant
-
- All Implemented Interfaces:
Serializable,Comparable<UinExceptionConstant>
public enum UinExceptionConstant extends Enum<UinExceptionConstant>
- Since:
- 1.0.0
- Author:
- Megha Tanga
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorCode()Getter for errorCode.StringgetErrorMessage()Getter for errorMessage.static UinExceptionConstantvalueOf(String name)Returns the enum constant of this type with the specified name.static UinExceptionConstant[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UIN_VAL_INVALID_NULL
public static final UinExceptionConstant UIN_VAL_INVALID_NULL
-
UIN_VAL_ILLEGAL_SEQUENCE_REPEATATIVE
public static final UinExceptionConstant UIN_VAL_ILLEGAL_SEQUENCE_REPEATATIVE
-
UIN_VAL_ILLEGAL_LENGTH
public static final UinExceptionConstant UIN_VAL_ILLEGAL_LENGTH
-
UIN_VAL_INVALID_DIGITS
public static final UinExceptionConstant UIN_VAL_INVALID_DIGITS
-
UIN_VAL_ILLEGAL_CHECKSUM
public static final UinExceptionConstant UIN_VAL_ILLEGAL_CHECKSUM
-
UIN_VAL_INVALID_ZERO_ONE
public static final UinExceptionConstant UIN_VAL_INVALID_ZERO_ONE
-
UIN_VAL_ILLEGAL_REVERSE
public static final UinExceptionConstant UIN_VAL_ILLEGAL_REVERSE
-
UIN_VAL_ILLEGAL_EQUAL_LIMIT
public static final UinExceptionConstant UIN_VAL_ILLEGAL_EQUAL_LIMIT
-
-
Method Detail
-
values
public static UinExceptionConstant[] 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 (UinExceptionConstant c : UinExceptionConstant.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UinExceptionConstant 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 nameNullPointerException- if the argument is null
-
getErrorCode
public String getErrorCode()
Getter for errorCode.- Returns:
- the error code.
-
getErrorMessage
public String getErrorMessage()
Getter for errorMessage.- Returns:
- the error message.
-
-