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

io.mosip.pms.device.constant.DeviceDetailExceptionsConstant Maven / Gradle / Ivy

The newest version!
package io.mosip.pms.device.constant;

public enum DeviceDetailExceptionsConstant {

	REG_DEVICE_SUB_TYPE_NOT_FOUND("PMS_AUT_001","Reg Device Sub Type Code not found in the list of Reg Device Sub Types"), 
	DEVICE_PROVIDER_NOT_FOUND("PMS_AUT_002","Device provider id not found from the partners list"), 
	DEVICE_DETAIL_EXIST("PMS_AUT_003","Device Details already exists"),
	DUPLICATE_REQUEST("PMS_AUT_004","Duplicate request received"), 
	DEVICE_DETAIL_NOT_FOUND("PMS_AUT_005","Device detail for id %s does not exist"),
	DEVICE_STATUS_CODE("PMS_AUT_025","ApprovalStatus should be Activate / De-activate"),
	DEVICE_DETAIL_NOT_APPROVED("PMS_AUT_027","Device details for id %s are not yet approved. Please provide approved details."),
	DEVICE_DETAIL_REJECTED("PMS_AUT_028","Device details for id %s are rejected. Cann't use same details for mapping.");
	
	/**
	 * The error code.
	 */
	private String errorCode;

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

	/**
	 * Constructor for partnerIdExceptionConstant.
	 * 
	 * @param errorCode
	 *            the errorCode.
	 * @param errorMessage
	 *            the errorMessage.
	 */
	DeviceDetailExceptionsConstant(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