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

io.mosip.kernel.masterdata.constant.HolidayErrorCode Maven / Gradle / Ivy

There is a newer version: 1.2.1.0
Show newest version
package io.mosip.kernel.masterdata.constant;

public enum HolidayErrorCode {

	HOLIDAY_FETCH_EXCEPTION("KER-MSD-019", "Error occured while fetching Holidays"),
	HOLIDAY_NOTFOUND("KER-MSD-020", "Holiday not found"),
	HOLIDAY_INSERT_EXCEPTION("KER-MSD-729", "Error Occured while inserting holiday"),
	HOLIDAY_UPDATE_EXCEPTION("KER-MSD-731", "Error occurred while updating Holiday"),
	HOLIDAY_LOCATION_INVALID("KER-MSD-730", "Invalid 'location_code' received"),
	DUPLICATE_REQUEST("KER-MSD-729", "Duplicate holiday reaquest received"),
	UPDATE_HOLIDAY_LOCATION_INVALID("KER-MSD-732", "Invalid 'location_code' received"),
	HOLIDAY_DELETE_EXCEPTION("KER-MSD-100", "Error occurred while deleting Holiday");

	private final String errorCode;
	private final String errorMessage;

	private HolidayErrorCode(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