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

io.mosip.pmp.partner.constant.PartnerIdExceptionConstant Maven / Gradle / Ivy

package io.mosip.pmp.partner.constant;

/**
 * @author sanjeev.shrivastava
 *
 */

public enum PartnerIdExceptionConstant {
	
	PARTNER_ALREADY_REGISTERED_EXCEPTION("PMS_PRT_001"  ,  "A Partner is already registered with the same Name"),
	PARTNER_ALREADY_REGISTERED_WITH_ID_EXCEPTION("PMS_PRT_051"  ,  "A Partner is already registered with the same Id");

	/**
	 * The error code.
	 */
	private String errorCode;

	/**
	 * The error message.
	 */
	private String errorMessage;

	/**
	 * Constructor for partnerIdExceptionConstant.
	 * 
	 * @param errorCode
	 *            the errorCode.
	 * @param errorMessage
	 *            the errorMessage.
	 */
	PartnerIdExceptionConstant(String errorCode, String errorMessage) {
		this.errorCode = errorCode;
		this.errorMessage = errorMessage;
	}

	/**
	 * Getter for error code.
	 * 
	 * @return the error code.
	 */
	public String getErrorCode() {
		return errorCode;
	}

	/**
	 * Getter for error message.
	 * 
	 * @return the error message.
	 */
	public String getErrorMessage() {
		return errorMessage;
	}
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy