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

io.mosip.kernel.transliteration.icu4j.constant.TransliterationErrorConstant Maven / Gradle / Ivy

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

/**This enum contains all exception for transliteration.
 * @author Ritesh Sinha
 *@since 1.0.0
 */
/**
 * @author Ritesh Sinha
 *
 */
public enum TransliterationErrorConstant {

	TRANSLITERATION_INVALID_ID("KER-TRL-001", "Transliteration not possible"),
	TRANSLITERATION_INVALID_LANGUAGE_CODE("KER-TRL-002", "Language code not supported");

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

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

	/**
	 * Constructor for TransliterationErrorConstant.
	 * 
	 * @param errorCode    the error code.
	 * @param errorMessage the error message.
	 */
	TransliterationErrorConstant(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 - 2024 Weber Informatics LLC | Privacy Policy