Enum ErrorCode
- java.lang.Object
-
- java.lang.Enum<ErrorCode>
-
- io.mosip.kernel.packetmanager.constants.ErrorCode
-
- All Implemented Interfaces:
Serializable,Comparable<ErrorCode>
public enum ErrorCode extends Enum<ErrorCode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADD_ZIP_ENTRY_ERRORAUDITS_REQUIREDBIR_TO_XML_ERRORINITIALIZATION_ERRORINVALID_DATA_ERRORJSON_PARSE_ERROROBJECT_TO_JSON_ERRORPACKET_ENCRYPT_ERRORPKT_ZIP_ERROR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorCode()StringgetErrorMessage()voidsetErrorCode(String errorCode)voidsetErrorMessage(String errorMessage)static ErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static ErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PACKET_ENCRYPT_ERROR
public static final ErrorCode PACKET_ENCRYPT_ERROR
-
JSON_PARSE_ERROR
public static final ErrorCode JSON_PARSE_ERROR
-
ADD_ZIP_ENTRY_ERROR
public static final ErrorCode ADD_ZIP_ENTRY_ERROR
-
BIR_TO_XML_ERROR
public static final ErrorCode BIR_TO_XML_ERROR
-
OBJECT_TO_JSON_ERROR
public static final ErrorCode OBJECT_TO_JSON_ERROR
-
PKT_ZIP_ERROR
public static final ErrorCode PKT_ZIP_ERROR
-
INVALID_DATA_ERROR
public static final ErrorCode INVALID_DATA_ERROR
-
AUDITS_REQUIRED
public static final ErrorCode AUDITS_REQUIRED
-
INITIALIZATION_ERROR
public static final ErrorCode INITIALIZATION_ERROR
-
-
Method Detail
-
values
public static ErrorCode[] 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 (ErrorCode c : ErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ErrorCode 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()
-
setErrorCode
public void setErrorCode(String errorCode)
-
getErrorMessage
public String getErrorMessage()
-
setErrorMessage
public void setErrorMessage(String errorMessage)
-
-