
io.mosip.kernel.idgenerator.vid.constant.VidExceptionConstant Maven / Gradle / Ivy
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