Package io.mosip.pms.common.constant
Enum ValidationErrorCode
- java.lang.Object
-
- java.lang.Enum<ValidationErrorCode>
-
- io.mosip.pms.common.constant.ValidationErrorCode
-
- All Implemented Interfaces:
Serializable,Comparable<ValidationErrorCode>
public enum ValidationErrorCode extends Enum<ValidationErrorCode>
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorCode()Method to fetch error codeStringgetErrorMessage()Method to fetch error messagestatic ValidationErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static ValidationErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_FILTER_FOUND
public static final ValidationErrorCode NO_FILTER_FOUND
-
COLUMN_DOESNT_EXIST
public static final ValidationErrorCode COLUMN_DOESNT_EXIST
-
FILTER_NOT_SUPPORTED
public static final ValidationErrorCode FILTER_NOT_SUPPORTED
-
INVALID_COLUMN_VALUE
public static final ValidationErrorCode INVALID_COLUMN_VALUE
-
NO_FILTER_COLUMN_FOUND
public static final ValidationErrorCode NO_FILTER_COLUMN_FOUND
-
FILTER_COLUMN_DOESNT_EXIST
public static final ValidationErrorCode FILTER_COLUMN_DOESNT_EXIST
-
FILTER_COLUMN_NOT_SUPPORTED
public static final ValidationErrorCode FILTER_COLUMN_NOT_SUPPORTED
-
COLUMN_DOESNT_EXIST_FILTER
public static final ValidationErrorCode COLUMN_DOESNT_EXIST_FILTER
-
CONSTRAINT_VIOLATION
public static final ValidationErrorCode CONSTRAINT_VIOLATION
-
INVALID_COLUMN_NAME
public static final ValidationErrorCode INVALID_COLUMN_NAME
-
-
Method Detail
-
values
public static ValidationErrorCode[] 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 (ValidationErrorCode c : ValidationErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ValidationErrorCode 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()
Method to fetch error code- Returns:
- error Code
-
getErrorMessage
public String getErrorMessage()
Method to fetch error message- Returns:
- error message
-
-