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

io.mosip.admin.packetstatusupdater.constant.PacketStatusUpdateErrorCode Maven / Gradle / Ivy

There is a newer version: 1.2.1.0
Show newest version
package io.mosip.admin.packetstatusupdater.constant;

public enum PacketStatusUpdateErrorCode {

	ADMIN_UNAUTHORIZED("ADM-PKT-001","Admin is not authorized"),
	RID_INVALID("ADM-PKT-002","RID is invalid"),
	CENTER_ID_NOT_PRESENT("ADM_PKT-003","Center does not exist"),
	PACKET_JSON_PARSE_EXCEPTION("ADM-PKT-010","JSON parse exception while parsing response"),
	PACKET_FETCH_EXCEPTION("ADM-PKT-090","Error occured while fetching packet status update");
	
	
	private final String errorCode;
	private final String errorMessage;

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

	public String getErrorCode() {
		return errorCode;
	}

	public String getErrorMessage() {
		return errorMessage;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy