Enum RidGeneratorExceptionConstant
- java.lang.Object
-
- java.lang.Enum<RidGeneratorExceptionConstant>
-
- io.mosip.kernel.idgenerator.rid.constant.RidGeneratorExceptionConstant
-
- All Implemented Interfaces:
Serializable,Comparable<RidGeneratorExceptionConstant>
public enum RidGeneratorExceptionConstant extends Enum<RidGeneratorExceptionConstant>
This enum provide all the exception constants for rid generator.- Since:
- 1.0.0
- Author:
- Ritesh Sinha
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EMPTY_INPUT_ERROR_CODEINPUT_LENGTH_ERROR_CODEINVALID_CENTERID_OR_MACHINEID_TIMESTAMP_LENGTHINVALID_SEQ_LENGTH_EXCEPTIONNULL_VALUE_ERROR_CODERID_FETCH_EXCEPTIONRID_UPDATE_EXCEPTION
-
Field Summary
Fields Modifier and Type Field Description StringerrorCodeThe errorCode.StringerrorMessageThe errorMessage.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorCode()Getter for errorCode.StringgetErrorMessage()Getter for errorMessage.static RidGeneratorExceptionConstantvalueOf(String name)Returns the enum constant of this type with the specified name.static RidGeneratorExceptionConstant[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EMPTY_INPUT_ERROR_CODE
public static final RidGeneratorExceptionConstant EMPTY_INPUT_ERROR_CODE
-
INPUT_LENGTH_ERROR_CODE
public static final RidGeneratorExceptionConstant INPUT_LENGTH_ERROR_CODE
-
NULL_VALUE_ERROR_CODE
public static final RidGeneratorExceptionConstant NULL_VALUE_ERROR_CODE
-
INVALID_CENTERID_OR_MACHINEID_TIMESTAMP_LENGTH
public static final RidGeneratorExceptionConstant INVALID_CENTERID_OR_MACHINEID_TIMESTAMP_LENGTH
-
RID_FETCH_EXCEPTION
public static final RidGeneratorExceptionConstant RID_FETCH_EXCEPTION
-
RID_UPDATE_EXCEPTION
public static final RidGeneratorExceptionConstant RID_UPDATE_EXCEPTION
-
INVALID_SEQ_LENGTH_EXCEPTION
public static final RidGeneratorExceptionConstant INVALID_SEQ_LENGTH_EXCEPTION
-
-
Method Detail
-
values
public static RidGeneratorExceptionConstant[] 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 (RidGeneratorExceptionConstant c : RidGeneratorExceptionConstant.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RidGeneratorExceptionConstant 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.
-
-