Enum VidExceptionConstant
- java.lang.Object
-
- java.lang.Enum<VidExceptionConstant>
-
- io.mosip.kernel.idvalidator.vid.constant.VidExceptionConstant
-
- All Implemented Interfaces:
Serializable,Comparable<VidExceptionConstant>
public enum VidExceptionConstant extends Enum<VidExceptionConstant>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description VID_VAL_ILLEGAL_CHECKSUMVID_VAL_ILLEGAL_LENGTHVID_VAL_ILLEGAL_SEQUENCE_REPEATATIVEVID_VAL_INVALID_DIGITSVID_VAL_INVALID_NULLVID_VAL_INVALID_ZERO_ONE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorCode()Getter for errorCode.StringgetErrorMessage()Getter for errorMessage.static VidExceptionConstantvalueOf(String name)Returns the enum constant of this type with the specified name.static VidExceptionConstant[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VID_VAL_INVALID_NULL
public static final VidExceptionConstant VID_VAL_INVALID_NULL
-
VID_VAL_ILLEGAL_SEQUENCE_REPEATATIVE
public static final VidExceptionConstant VID_VAL_ILLEGAL_SEQUENCE_REPEATATIVE
-
VID_VAL_ILLEGAL_LENGTH
public static final VidExceptionConstant VID_VAL_ILLEGAL_LENGTH
-
VID_VAL_INVALID_DIGITS
public static final VidExceptionConstant VID_VAL_INVALID_DIGITS
-
VID_VAL_ILLEGAL_CHECKSUM
public static final VidExceptionConstant VID_VAL_ILLEGAL_CHECKSUM
-
VID_VAL_INVALID_ZERO_ONE
public static final VidExceptionConstant VID_VAL_INVALID_ZERO_ONE
-
-
Method Detail
-
values
public static VidExceptionConstant[] 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 (VidExceptionConstant c : VidExceptionConstant.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VidExceptionConstant 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.
-
-