Enum LicenseKeyManagerExceptionConstants
- java.lang.Object
-
- java.lang.Enum<LicenseKeyManagerExceptionConstants>
-
- io.mosip.kernel.lkeymanager.constant.LicenseKeyManagerExceptionConstants
-
- All Implemented Interfaces:
Serializable,Comparable<LicenseKeyManagerExceptionConstants>
public enum LicenseKeyManagerExceptionConstants extends Enum<LicenseKeyManagerExceptionConstants>
ENUM to manage constants of exceptions handled in the service.- Since:
- 1.0.0
- Author:
- Sagar Mahapatra
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DATE_EXPIREDILLEGAL_LICENSE_KEYILLEGAL_PERMISSIONILLEGAL_TSPINVALID_GENERATED_LICENSEKEYLICENSEKEY_EXPIREDLICENSEKEY_NOT_FOUNDNO_PERMISSIONS_MAPPEDNOT_ACCEPTABLE_PERMISSION
-
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 LicenseKeyManagerExceptionConstantsvalueOf(String name)Returns the enum constant of this type with the specified name.static LicenseKeyManagerExceptionConstants[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ILLEGAL_TSP
public static final LicenseKeyManagerExceptionConstants ILLEGAL_TSP
-
INVALID_GENERATED_LICENSEKEY
public static final LicenseKeyManagerExceptionConstants INVALID_GENERATED_LICENSEKEY
-
NOT_ACCEPTABLE_PERMISSION
public static final LicenseKeyManagerExceptionConstants NOT_ACCEPTABLE_PERMISSION
-
LICENSEKEY_NOT_FOUND
public static final LicenseKeyManagerExceptionConstants LICENSEKEY_NOT_FOUND
-
LICENSEKEY_EXPIRED
public static final LicenseKeyManagerExceptionConstants LICENSEKEY_EXPIRED
-
ILLEGAL_LICENSE_KEY
public static final LicenseKeyManagerExceptionConstants ILLEGAL_LICENSE_KEY
-
ILLEGAL_PERMISSION
public static final LicenseKeyManagerExceptionConstants ILLEGAL_PERMISSION
-
DATE_EXPIRED
public static final LicenseKeyManagerExceptionConstants DATE_EXPIRED
-
NO_PERMISSIONS_MAPPED
public static final LicenseKeyManagerExceptionConstants NO_PERMISSIONS_MAPPED
-
-
Method Detail
-
values
public static LicenseKeyManagerExceptionConstants[] 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 (LicenseKeyManagerExceptionConstants c : LicenseKeyManagerExceptionConstants.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LicenseKeyManagerExceptionConstants 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.
-
-