Package io.mosip.pms.common.constant
Enum SearchErrorCode
- java.lang.Object
-
- java.lang.Enum<SearchErrorCode>
-
- io.mosip.pms.common.constant.SearchErrorCode
-
- All Implemented Interfaces:
Serializable,Comparable<SearchErrorCode>
public enum SearchErrorCode extends Enum<SearchErrorCode>
Error codes for masterdata search- Since:
- 1.0.0
- Author:
- Abhishek Kumar
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorCode()Getter for error code.StringgetErrorMessage()Getter for error message.static SearchErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static SearchErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INVALID_COLUMN
public static final SearchErrorCode INVALID_COLUMN
-
INVALID_PAGINATION_VALUE
public static final SearchErrorCode INVALID_PAGINATION_VALUE
-
FILTER_TYPE_NOT_AVAILABLE
public static final SearchErrorCode FILTER_TYPE_NOT_AVAILABLE
-
MISSING_FILTER_COLUMN
public static final SearchErrorCode MISSING_FILTER_COLUMN
-
INVALID_SORT_INPUT
public static final SearchErrorCode INVALID_SORT_INPUT
-
INVALID_BETWEEN_VALUES
public static final SearchErrorCode INVALID_BETWEEN_VALUES
-
INVALID_PAGINATION
public static final SearchErrorCode INVALID_PAGINATION
-
INVALID_SORT_TYPE
public static final SearchErrorCode INVALID_SORT_TYPE
-
ERROR_OCCURED_WHILE_SORTING
public static final SearchErrorCode ERROR_OCCURED_WHILE_SORTING
-
INVALID_COLUMN_VALUE
public static final SearchErrorCode INVALID_COLUMN_VALUE
-
INVALID_SORT_FIELD
public static final SearchErrorCode INVALID_SORT_FIELD
-
INVALID_VALUE
public static final SearchErrorCode INVALID_VALUE
-
-
Method Detail
-
values
public static SearchErrorCode[] 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 (SearchErrorCode c : SearchErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SearchErrorCode 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 error code.- Returns:
- the error code.
-
getErrorMessage
public String getErrorMessage()
Getter for error message.- Returns:
- the error message.
-
-