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

io.mosip.kernel.idgenerator.vid.constant.VidExceptionConstant Maven / Gradle / Ivy

There is a newer version: 1.3.0-beta.1
Show newest version
package io.mosip.kernel.idgenerator.vid.constant;

/**
 * This enum contains all exception properties that are required to validate
 * VID.
 * 
 * @author Ritesh Sinha
 * @since 1.0.0
 *
 */
public enum VidExceptionConstant {
	VID_FETCH_EXCEPTION("KER-VIG-001", "Error occur while fetching counter and value details"),
	VID_INSERTION_EXCEPTION("KER-VIG-002", "Error occur while updating counter details");

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

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

	/**
	 * Constructor for PridExceptionConstant.
	 * 
	 * @param errorCode    the error code.
	 * @param errorMessage the error message.
	 */
	VidExceptionConstant(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