All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.mosip.kernel.packetmanager.constants.PacketUtilityErrorCodes Maven / Gradle / Ivy

package io.mosip.kernel.packetmanager.constants;

public enum PacketUtilityErrorCodes {

	UNKNOWN_RESOURCE_EXCEPTION("KER-PUT-001",
			"Unknown resource provided"),
	FILE_NOT_FOUND_IN_DESTINATION("KER-PUT-002", "Unable to Find File in Destination Folder"),
	PACKET_DECRYPTION_FAILURE_EXCEPTION("KER-PUT-003", "Packet decryption failed"),
	API_NOT_ACCESSIBLE_EXCEPTION("KER-PUT-005", "API not accessible"),
	SYS_IO_EXCEPTION("KER-PUT-004", "Unable to Find File in Destination Folder");


	private final String errorCode;
	private final String errorMessage;

	private PacketUtilityErrorCodes(final String errorCode, final String errorMessage) {
		this.errorCode = errorCode;
		this.errorMessage = errorMessage;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public String getErrorMessage() {
		return errorMessage;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy