Enum IdObjectValidatorErrorConstant
- java.lang.Object
-
- java.lang.Enum<IdObjectValidatorErrorConstant>
-
- io.mosip.kernel.core.idobjectvalidator.constant.IdObjectValidatorErrorConstant
-
- All Implemented Interfaces:
Serializable,Comparable<IdObjectValidatorErrorConstant>
public enum IdObjectValidatorErrorConstant extends Enum<IdObjectValidatorErrorConstant>
Enum containing custom error codes and the respective messages.- Since:
- 1.0.0
- Author:
- Manoj SP, Swati Raj
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ID_OBJECT_PARSING_FAILEDID_OBJECT_VALIDATION_FAILEDINVALID_ID_SCHEMAINVALID_INPUT_PARAMETERMASTERDATA_LOAD_FAILEDMISSING_INPUT_PARAMETERSCHEMA_IO_EXCEPTION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorCode()Gets the error code.StringgetMessage()Gets the message.static IdObjectValidatorErrorConstantvalueOf(String name)Returns the enum constant of this type with the specified name.static IdObjectValidatorErrorConstant[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SCHEMA_IO_EXCEPTION
public static final IdObjectValidatorErrorConstant SCHEMA_IO_EXCEPTION
-
ID_OBJECT_VALIDATION_FAILED
public static final IdObjectValidatorErrorConstant ID_OBJECT_VALIDATION_FAILED
-
ID_OBJECT_PARSING_FAILED
public static final IdObjectValidatorErrorConstant ID_OBJECT_PARSING_FAILED
-
INVALID_INPUT_PARAMETER
public static final IdObjectValidatorErrorConstant INVALID_INPUT_PARAMETER
-
MISSING_INPUT_PARAMETER
public static final IdObjectValidatorErrorConstant MISSING_INPUT_PARAMETER
-
MASTERDATA_LOAD_FAILED
public static final IdObjectValidatorErrorConstant MASTERDATA_LOAD_FAILED
-
INVALID_ID_SCHEMA
public static final IdObjectValidatorErrorConstant INVALID_ID_SCHEMA
-
-
Method Detail
-
values
public static IdObjectValidatorErrorConstant[] 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 (IdObjectValidatorErrorConstant c : IdObjectValidatorErrorConstant.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IdObjectValidatorErrorConstant 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()
Gets the error code.- Returns:
- the error code
-
getMessage
public String getMessage()
Gets the message.- Returns:
- the message
-
-