Enum PacketUtilityErrorCodes
- java.lang.Object
-
- java.lang.Enum<PacketUtilityErrorCodes>
-
- io.mosip.kernel.packetmanager.constants.PacketUtilityErrorCodes
-
- All Implemented Interfaces:
Serializable,Comparable<PacketUtilityErrorCodes>
public enum PacketUtilityErrorCodes extends Enum<PacketUtilityErrorCodes>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description API_NOT_ACCESSIBLE_EXCEPTIONFILE_NOT_FOUND_IN_DESTINATIONPACKET_DECRYPTION_FAILURE_EXCEPTIONSYS_IO_EXCEPTIONUNKNOWN_RESOURCE_EXCEPTION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorCode()StringgetErrorMessage()static PacketUtilityErrorCodesvalueOf(String name)Returns the enum constant of this type with the specified name.static PacketUtilityErrorCodes[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN_RESOURCE_EXCEPTION
public static final PacketUtilityErrorCodes UNKNOWN_RESOURCE_EXCEPTION
-
FILE_NOT_FOUND_IN_DESTINATION
public static final PacketUtilityErrorCodes FILE_NOT_FOUND_IN_DESTINATION
-
PACKET_DECRYPTION_FAILURE_EXCEPTION
public static final PacketUtilityErrorCodes PACKET_DECRYPTION_FAILURE_EXCEPTION
-
API_NOT_ACCESSIBLE_EXCEPTION
public static final PacketUtilityErrorCodes API_NOT_ACCESSIBLE_EXCEPTION
-
SYS_IO_EXCEPTION
public static final PacketUtilityErrorCodes SYS_IO_EXCEPTION
-
-
Method Detail
-
values
public static PacketUtilityErrorCodes[] 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 (PacketUtilityErrorCodes c : PacketUtilityErrorCodes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PacketUtilityErrorCodes 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()
-
getErrorMessage
public String getErrorMessage()
-
-