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

io.mosip.registration.exception.RegistrationExceptionConstants Maven / Gradle / Ivy

package io.mosip.registration.exception;

import io.mosip.registration.constants.RegistrationConstants;

import static io.mosip.registration.constants.RegistrationConstants.PACKET_CREATION_EXP_CODE;
import static io.mosip.registration.constants.RegistrationConstants.PACKET_UPLOAD_EXP_CODE;
import static io.mosip.registration.constants.RegistrationConstants.REG_ACK_EXP_CODE;

/**
 * Exception enum for Registration Services Sub-Module
 * 
 * @author Balaji.Sridharan
 * @since 1.0.0
 *
 */
public enum RegistrationExceptionConstants {

	REG_IO_EXCEPTION(PACKET_CREATION_EXP_CODE + "ZCM-001", "IO exception"),

	// PacketHandlerService
	REG_PACKET_CREATION_ERROR_CODE(PACKET_CREATION_EXP_CODE + "PHS-001", "The packet zip file is either null or empty"),

	// PacketCreationService
	REG_JSON_PROCESSING_EXCEPTION(PACKET_CREATION_EXP_CODE + "PCS-001", "Exception while parsing object to JSON"),
	REG_PACKET_CREATION_EXCEPTION(PACKET_CREATION_EXP_CODE + "PCS-002", "Unable to create packet zip from RegistrationDTO"),
	REG_PACKET_BIO_CBEFF_GENERATION_ERROR_CODE(PACKET_CREATION_EXP_CODE + "PCS-002", "Exception while creating CBEFF file for biometrics"),

	// AuditDAO
	REG_GET_AUDITS_EXCEPTION(PACKET_CREATION_EXP_CODE + "ADA-001", "Unable to fetch Audit Logs based on provided dates"),

	// PacketMetaInfoConverter
	REG_PACKET_METAINFO_CONVERSION_EXCEPTION(PACKET_CREATION_EXP_CODE + "PMC-001", "Unable to create Packet Meta Info from RegistrationDTO"),

	// ZipCreationService
	REG_ADD_ENTRY_TO_ZIP_EXCEPTION(PACKET_CREATION_EXP_CODE + "ZCS-001", "Exception while adding the file to the zip output stream"),
	REG_IO_ZIP_CREATION_EXCEPTION(PACKET_CREATION_EXP_CODE + "ZCS-002", "Exception while closing the zip output stream"),
	REG_ZIP_CREATION_EXCEPTION(PACKET_CREATION_EXP_CODE + "ZCS-003", "Exception while creating packet zip file form RegistrationDTO and provided input files"),
	REG_ZIP_CREATION_INVALID_FILES_MAP(PACKET_CREATION_EXP_CODE + "ZCS-004", "Map containing the generated files cannot be null or empty"),

	// PacketEncryptionService
	REG_PACKET_ENCRYPTION_EXCEPTION(PACKET_CREATION_EXP_CODE + "PES-001", "Exception while encrypting the packet zip"),
	REG_PACKET_SIZE_EXCEEDED_ERROR_CODE(PACKET_CREATION_EXP_CODE + "PES-002", "Registration packet size exceeded the configured file size"),
	REG_PACKET_SIZE_INVALID(PACKET_CREATION_EXP_CODE + "PES-003", "Configuration parameter to validate the size of the packet is required or value of the parameter is invalid"),
	REG_PACKET_AUDIT_DATES_MISSING(PACKET_CREATION_EXP_CODE + "PES-004", "Timestamp of the first audit log or timestamp of the last audit log available in packet is missing or RID is missing"),
	REG_PACKET_TO_BE_ENCRYPTED_INVALID(PACKET_CREATION_EXP_CODE + "PES-005", "Registration packet to be encrypted is null or empty"),

	// AESEncryptionService
	REG_INVALID_DATA_ERROR_CODE(PACKET_CREATION_EXP_CODE + "AES-001", "Invalid Data for Packet Encryption using Symmetric Algorithm"),
	REG_INVALID_KEY_ERROR_CODE(PACKET_CREATION_EXP_CODE + "AES-002", "Invalid Key for Packet Encryption using Symmetric Algorithm"),
	REG_PACKET_AES_ENCRYPTION_EXCEPTION(PACKET_CREATION_EXP_CODE + "AES-003", "Exception while Encrypting the packet zip"),
	REG_PACKET_KEY_SPLITTER_INVALID(PACKET_CREATION_EXP_CODE + "AES-004", "Key splitter configuration property is either missing or invalid"),
	REG_PACKET_FOR_ENCRYPTION_INVALID(PACKET_CREATION_EXP_CODE + "AES-005", "Registration packet to be encrypted is eithet null or empty"),

	// RSAEncryptionService
	REG_INVALID_DATA_RSA_ENCRYPTION(PACKET_CREATION_EXP_CODE + "RSA-001", "Invalid Key or Algorithm for encrypting the data using Assymmetric algorithm"),
	REG_RUNTIME_RSA_ENCRYPTION(PACKET_CREATION_EXP_CODE + "RSA-002", "Exception while Encrypting the packet zip using Assymmetric algorithm"),
	REG_RSA_PUBLIC_KEY_NOT_FOUND(PACKET_CREATION_EXP_CODE + "RSA-003", "RSA public key is not available"),
	REG_INVALID_DATA_FOR_RSA_ENCRYPTION(PACKET_CREATION_EXP_CODE + "RSA-004", "Data to be encrypted is either null or empty"),

	// StorageService
	REG_PACKET_STORAGE_EXCEPTION(PACKET_CREATION_EXP_CODE + "SSI-001", "Exception while storing the packet in configured location"),
	REG_PACKET_STORAGE_RUNTIME_EXCEPTION(PACKET_CREATION_EXP_CODE + "SSI-002", "Runtime Exception while storing the packet in configured location"),
	REG_PACKET_STORAGE_INVALID_RID(PACKET_CREATION_EXP_CODE + "SSI-003", "RID is required for storing the packet in configured location"),
	REG_PACKET_STORAGE_INVALID_DATA(PACKET_CREATION_EXP_CODE + "SSI-004", "Data to be stored in configured location is either null or empty"),
	REG_PACKET_STORAGE_LOCATION_INVALID(PACKET_CREATION_EXP_CODE + "SSI-005", "Configured packet storage location parameter is either null or empty"),
	REG_PACKET_STORAGE_DATE_FORMAT_INVALID(PACKET_CREATION_EXP_CODE + "SSI-006", "Configured date format parameter is either null or empty"),

	// RegistrationDAO
	REG_PACKET_SAVE_TO_DB_EXCEPTION(PACKET_CREATION_EXP_CODE + "RDA-001", "Exception while saving the registration details to DB"),

	REG_FILE_NOT_FOUND_ERROR_CODE(PACKET_UPLOAD_EXP_CODE + "FUM-001", "File not found for input path"),
	REG_IO_ERROR_CODE(PACKET_UPLOAD_EXP_CODE + "RKG-001", "Input-output relation failed"),
	REG_CLASS_NOT_FOUND_ERROR_CODE(PACKET_CREATION_EXP_CODE + "SDU-001", "Class not found for input"),
	REG_FTP_CONNECTION_ERROR_CODE(PACKET_UPLOAD_EXP_CODE + "FUM-002","Error in ftp connection"),
	REG_TEMPLATE_IO_EXCEPTION(REG_ACK_EXP_CODE + "TES","Exception while writing the template into file"),
	REG_FTP_PROPERTIES_SET_ERROR_CODE(PACKET_UPLOAD_EXP_CODE + "FUM-003","Error in ftp properties"),
	REG_SERVICE_DELEGATE_UTIL_CODE(PACKET_CREATION_EXP_CODE + "SDU-002","Exception through service delegate util, class not found"),
	REG_RSA_INVALID_DATA(PACKET_CREATION_EXP_CODE + "REM-001", "Invalid data for RSA encryption"),
	REG_RSA_INVALID_KEY(PACKET_CREATION_EXP_CODE + "REM-002", "Invalid key for RSA encryption"),
	REG_SERVICE_DUPLICATE_KEY_EXCEPTION_CODE("IDC-FRA-PAC-023","Tried to insert Duplicate key in MAchine Mapping table"),
	REG_UI_SHEDULER_IOEXCEPTION_EXCEPTION("REG-UI-SHE-003", "Unable to load the screen"),
	REG_UI_LOGIN_IO_EXCEPTION("LGN-UI-SHE-004", "IO Exception"),
	REG_UI_LOGIN_RESOURCE_EXCEPTION("LGN-UI-SHE-005", "Unable to load the Resource"),
	REG_UI_LOGOUT_IO_EXCEPTION("REG-UI-SHE-009", "Unable to logout"),
	REG_ACK_TEMPLATE_IO_EXCEPTION("REG-UI-SHE-010","Unable to write the image file"),
	REG_PACKET_SYNC_EXCEPTION("REG-PSS-001","Unable to Sync Packets to the server"),
	REG_PACKET_UPLOAD_ERROR("REG-PUS-001","Unable to Push Packets to the server"),
	REG_ID_JSON_ERROR("REG-JSC-001","Exception while parsing DemographicDTO to ID JSON"),
	REG_ID_JSON_FIELD_ACCESS_ERROR("REG-JSC-002","Exception while accessing fields in DemographicDTO for ID JSON conversion"),
	REG_IRIS_SCANNING_ERROR(RegistrationConstants.USER_REG_IRIS_CAPTURE_EXP_CODE + "IFC-003", "Exception while scanning iris of the individual"),
	REG_FINGERPRINT_SCANNING_ERROR(RegistrationConstants.USER_REG_FINGERPRINT_CAPTURE_EXP_CODE+"FCS-002", "Exception while scanning fingerprints of the individual"),
	REG_BIOMETRIC_QUALITY_CHECK_ERROR("REG-BQC-001", "Exception while evaluating the biometrics quality with SDK"),
	REG_BIOMETRIC_QUALITY_SCORE_RANGE_ERROR("REG-BQC-002", "Exception while evaluating the biometrics quality score"),
	REG_OTP_VALIDATION("REG-OV-001","Erroe while validating the otp"),
	REG_PACKET_DATE_PARSER_CODE(PACKET_CREATION_EXP_CODE + "TGE-001", "Exception while parsing the date to display in acknowledgement receipt"),
	REG_PACKET_JSON_VALIDATOR_ERROR_CODE(PACKET_CREATION_EXP_CODE + "PCS-003", "Exception while validating ID json file"),
	AUTHZ_ADDING_AUTHZ_HEADER("REG-RCA-001", "Exception while invoking web-service request"),
	INVALID_OTP("REG-SDU-003", "OTP is either invalid or expired"),
	INVALID_RESPONSE_HEADER("REG-SDU-004", "Response header received from the web-service is not as expected"),
	AUTHZ_ADDING_REQUEST_SIGN("REG-RCA-002", "Exception while generating the signature of resquest body"),
	AUTH_TOKEN_COOKIE_NOT_FOUND("REG-SDU-005", "Auth token received from the authentication web-service is either null or empty"),
	AUTH_TOKEN_SAVE_FAILED("REG-SDU-006", "Failed to save auth token (invalid / too large)"),
	
	//Template Service
	TEMPLATE_CHECK_EXCEPTION(PACKET_CREATION_EXP_CODE + "TSI-001", "Template Type Code / Language Code cannot be null"),
	
	// TPM
	TPM_UTIL_SIGN_ERROR("TPM-UTL-001", "Exception while signing the data using TPM"),
	TPM_UTIL_VALIDATE_SIGN_ERROR("TPM-UTL-002",
			"Exception while validating the signature provided by TPM"),
	TPM_UTIL_ASYMMETRIC_ENCRYPT_ERROR("TPM-UTL-003",
			"Exception while encrypting the data using asymmetric crypto-algorithm through TPM"),
	TPM_UTIL_ASYMMETRIC_DECRYPT_ERROR("TPM-UTL-004",
			"Exception while encrypting the data using asymmetric crypto-algorithm through TPM"),
	TPM_UTIL_GET_SIGN_KEY_ERROR("TPM-UTL-005", "Exception while getting the public part of the TPM signing key"),
	TPM_UTIL_GET_TPM_INSTANCE_ERROR("TPM-UTL-006", "Exception while getting the TPM instance"),
	TPM_UTIL_CLOSE_TPM_INSTANCE_ERROR("TPM-UTL-007", "Exception while closing the TPM instance"),
	TPM_INIT_CLOSE_TPM_INSTANCE_ERROR("TPM-INT-001", "Exception while closing the TPM instance"),
	
	// ID Object Validator
	ID_OBJECT_SCHEMA_VALIDATOR("REG-IOS-001", "Invalid ID Object Schema"),
	ID_OBJECT_PATTERN_VALIDATOR("REG-IOS-002", "Invalid ID Object Pattern"),
	ID_OBJECT_MASTER_DATA_VALIDATOR("REG-IOS-003", "Invalid Master Data Object Pattern"),

	// TPM Public Key Upload
	TPM_PUBLIC_KEY_UPLOAD("REG-TPK-001", "Exception verifying TPM Public Keys"),
	
	//Invalid User
	AUTH_ADVICE_USR_ERROR("REG-SER-ATAD","Provided user id not allowed to do this operation"),

	// Registration Packet Validation
	REG_NULL_PACKET_EXCEPTION(PACKET_CREATION_EXP_CODE + "PCS-004", "RegistrationDTO can not be null"),
	REG_INVALID_RID_EXCEPTION(PACKET_CREATION_EXP_CODE + "PCS-005", "RID can not be null or empty"),
	REG_PKT_METADATA_NULL_EXCEPTION(PACKET_CREATION_EXP_CODE + "PCS-006", "Registration Meta Data can not be null"),
	REG_PKT_INVALID_CENTER_ID_EXCEPTION(PACKET_CREATION_EXP_CODE + "PCS-007", "Registration Center ID can not be null or empty"),
	REG_PKT_INVALID_MACHINE_ID_EXCEPTION(PACKET_CREATION_EXP_CODE + "PCS-008", "Machine ID can not be null or empty"),
	REG_PKT_INVALID_DEVICE_ID_EXCEPTION(PACKET_CREATION_EXP_CODE + "PCS-09", "Device ID can not be null or empty"),
	REG_PKT_INVALID_REG_CATEGORY_EXCEPTION(PACKET_CREATION_EXP_CODE + "PCS-010", "Registration Category can not be null or empty"),
	REG_PKT_INVALID_APPLICANT_CONSENT_EXCEPTION(PACKET_CREATION_EXP_CODE + "PCS-011", "Consent of Applicant can not be null or empty"),
	REG_PKT_BIOMETRICS_NULL_EXCEPTION(PACKET_CREATION_EXP_CODE + "PCS-012", "Biometrics can not be null"),
	REG_PKT_APPLICANT_BIOMETRICS_NULL_EXCEPTION(PACKET_CREATION_EXP_CODE + "PCS-013", "Applicant Biometrics can not be null"),
	REG_PKT_APPLICANT_BIO_INVALID_FACE_EXCEPTION(PACKET_CREATION_EXP_CODE + "PCS-014", "Applicant Face can not be null"),
	REG_PKT_APPLICANT_BIO_INVALID_EXCEPTION_FACE_EXCEPTION(PACKET_CREATION_EXP_CODE + "PCS-015", "Applicant Exception Face can not be null"),
	REG_PKT_AUTHENTICATION_BIO_INVALID_EXCEPTION_FACE_EXCEPTION(PACKET_CREATION_EXP_CODE + "PCS-016", "Applicant Exception Face can not be null"),
	REG_PKT_OSIDATA_NULL_EXCEPTION(PACKET_CREATION_EXP_CODE + "PCS-017", "OSI Data can not be null"),
	REG_PKT_OFFICER_ID_NULL_EXCEPTION(PACKET_CREATION_EXP_CODE + "PCS-018", "Officer ID in OSI Data can not be null or empty"),
	REG_PKT_OFFICER_AUTH_INVALID_EXCEPTION(PACKET_CREATION_EXP_CODE + "PCS-019", "Officer authentication can not be empty"),
	REG_PKT_SUPERVISOR_ID_NULL_EXCEPTION(PACKET_CREATION_EXP_CODE + "PCS-020", "Supervisor ID in OSI Data can not be null or empty"),
	REG_PKT_SUPERVISOR_AUTH_INVALID_EXCEPTION(PACKET_CREATION_EXP_CODE + "PCS-021", "Supervisor authentication can not be empty"),
	REG_PKT_CREATE_NO_SESSION_CONTEXT_MAP(PACKET_CREATION_EXP_CODE + "PCS-022", "Session Context map cannot be null"),
	REG_PKT_CREATE_NO_APP_CONTEXT_MAP(PACKET_CREATION_EXP_CODE + "PCS-023", "Application Context map cannot be null"),
	REG_PKT_CREATE_NO_APP_LANG(PACKET_CREATION_EXP_CODE + "PCS-024", "Application Language cannot be null or empty"),
	REG_PKT_CREATE_NO_CBEFF_TAG_FLAG(PACKET_CREATION_EXP_CODE + "PCS-025", "Flag to indicate whether only unique tag in BIR elements have to be present in CBEFF is not available. So both unique and duplicate tags can be available in BIR elements"),
	
	//Notification Service
	NOTIFICATION_MANDATORY_CHECK_SMS_EXCEPTION(PACKET_CREATION_EXP_CODE + "NSI-001", "Message and Number can not be null"),
	NOTIFICATION_MANDATORY_CHECK_EMAIL_EXCEPTION(PACKET_CREATION_EXP_CODE + "NSI-002", "Message and Email can not be null"),
	REG_PKT_FILE_NAME_EXCEPTION(PACKET_CREATION_EXP_CODE + "PUS-002", "File name is missing"),
	REG_PKT_CLIENT_STATUS(PACKET_CREATION_EXP_CODE + "PUS-003", "Packet client status code is missing"),
	REG_PKT_CLIENT_STATUS_COMMENTS(PACKET_CREATION_EXP_CODE + "PUS-004", "Packet client status comments is missing"),
	REG_PKT_SERVER_STATUS(PACKET_CREATION_EXP_CODE + "PUS-005", "Packet server status is missing"),
	REG_PKT_STATUS(PACKET_CREATION_EXP_CODE + "PUS-006", "Packet status value is missing"),
	REG_PKT_HASH(PACKET_CREATION_EXP_CODE + "PUS-007", "Packet hash is missing"),
	REG_PKT_SUPERVISOR_STATUS(PACKET_CREATION_EXP_CODE + "PUS-008", "Supervisor status is missing"),
	REG_PKT_SUPERVISOR_COMMENTS(PACKET_CREATION_EXP_CODE + "PUS-009", "Supervisor comments is missing"),
	REG_PKT_ENCODED_STRING(PACKET_CREATION_EXP_CODE + "PUS-010", "Encoded string can not be empty or null"),
	REG_PKT_TRIGGER_PT(PACKET_CREATION_EXP_CODE + "PUS-010", "Trigger point can not be empty or null"),
	REG_PKT_ID(PACKET_CREATION_EXP_CODE + "PUS-011", "Packet id can not be empty or null"),
	REG_PKT_UPLD_EXCEPTION(PACKET_CREATION_EXP_CODE + "PUS-001", "Upload Packet missing"),
	
	REG_MASTER_SYNC_SERVICE_IMPL("REG-MSS-001","master sync service mandatory fields are missing."),
	REG_MASTER_SYNC_SERVICE_IMPL_LANGCODE("REG-MSS-002","master sync service language code mandatory fields is missing."),
	REG_MASTER_SYNC_SERVICE_IMPL_CODE_AND_LANGCODE("REG-MSS-003","master sync service code and language code mandatory fields is missing."),
	REG_MASTER_SYNC_SERVICE_IMPL_NO_MACHINE_NAME("REG-MSS-004","master sync service mandatory machine name is missing."),
	
	REG_TRIGGER_POINT_MISSING("REG-TGP-001","trigger point is mandatory field and it is missing."),
	REG_BIOMETRIC_DTO_NULL("REG-UOS-001","Biometric Dto is mandatory field and it is missing."),
	
	//Login
	REG_USER_ID_EXCEPTION("REG-LSI-001","User Id cannot be null or empty."),
	REG_LOGIN_AUTH_TYPE_EXCEPTION("REG-LSI-002","Authentication Type cannot be null or empty."),
	REG_LOGIN_ROLES_EXCEPTION("REG-LSI-003","Roles cannot be null or empty."),
	REG_LOGIN_CENTER_ID_EXCEPTION("REG-LSI-004","Registration Center Id cannot be null or empty."),
	REG_LOGIN_LANG_CODE_EXCEPTION("REG-LSI-005","Language Code cannot be null or empty."),
	
	
	REG_POLICY_SYNC_SERVICE_IMPL("REG-PSS-001","responseDTO cannot be null or empty"),
	REG_POLICY_SYNC_SERVICE_IMPL_CENTERMACHINEID("REG-PSS-002","centerMachineId is mandatory"),
	REG_POLICY_SYNC_FAILED("REG-PSS-003","Policy key sync failed"),
	
	REG_GLOBALPARAM_SYNC_SERVICE_IMPL("REG-GPSS-001","responseDTO cannot be null or empty"),
	REG_GLOBALPARAM_SYNC_SERVICE_IMPL_TRIGGER_POINT("REG-GPSS-002","triggerPoint is mandatory"),
	
	REG_LOGIN_USER_DTO_EXCEPTION("REG-LSI-006","UserDTO cannot be null or empty."),
	
	//BioService
	REG_MASTER_BIO_SERVICE_IMPL_FINGERPRINT_AUTTHENTICATION("REG-BIO-001","user id is null"),
	REG_MASTER_BIO_SERVICE_IMPL_IRIS_AUTHENTICATION("REG-MSS-002","user id is null"),
	REG_MASTER_BIO_SERVICE_IMPL_FINGERPRINT_IMAGE_TYPE("REG-MSS-003","finger type is null"),
	REG_MASTER_BIO_SERVICE_IMPL_FINGERPRINT_SCANNED_PATH("REG-MSS-004","path string is null"),
	REG_MASTER_BIO_SERVICE_IMPL_IRIS_IMAGE("REG-MSS-005","iris string is null"),

	REG_SYNC_NO_RESPONSE("REG-SYN-001","Response cannot be null or empty"),
	REG_SYNC_FAILURE("REG-SYN-002","%s failed"),
	
	// LOCAL Client security Impl
	NON_TPM_SIGN_ERROR("REG-NONTPM-001", "Exception while signing the data using NON-TPM"),
	NON_TPM_VALIDATE_SIGN_ERROR("REG-NONTPM-002",
			"Exception while validating the signature provided by NON-TPM"),
	NON_TPM_ASYMMETRIC_ENCRYPT_ERROR("REG-NONTPM-003",
			"Exception while encrypting the data using asymmetric crypto-algorithm through NON-TPM"),
	NON_TPM_ASYMMETRIC_DECRYPT_ERROR("REG-NONTPM-004",
			"Exception while encrypting the data using asymmetric crypto-algorithm through NON-TPM"),
	NON_TPM_GET_SIGN_KEY_ERROR("REG-NONTPM-005", "Exception while public key of NON-TPM Local client security"),
	NON_TPM_GET_TPM_INSTANCE_ERROR("REG-NONTPM-006", "Exception while setting NON-TPM Local client security"),
	
	TPM_REQUIRED("REG-TPM-001", "TPM INSTANCE IS REQUIRED"),
	

	MDS_BIODEVICE_NOT_FOUND("REG-MDS-001","Bio Device not found"),
	MDS_STREAM_ERROR("REG-MDS-002","Unable to start Stream"),
	MDS_RCAPTURE_ERROR("REG-MDS-003","RCapture Failed"),
	MDS_PROVIDER_NOT_FOUND("REG-MDS-004","MDS provider not found"),
	MDS_JWT_INVALID("REG-MDS-005","Invalid JWT value (Header.Payload.Signature)"),
	MDS_PAYLOAD_EMPTY("REG-MDS-006","Payload is Empty"),
	MDS_STREAM_TIMEOUT("REG-MDS-007","Stream Timeout Reached"),
	MDS_CAPTURE_INVALID_TIME("REG-MDS-008","RCapture Time was Invalid"),
	MDS_SIGNATURE_EMPTY("REG-MDS-009","Signature is Empty"),

	APP_INVALID_STATE("REG-INIT-001", "Application found in invalid state, tampering detected !"),
	
	//PRE-REG EXCEPTION CONSTANTS
	PRE_REG_SYNC_FAIL("REG-PREREG-001", "Pre Registration sync Failed"),

	ACCESS_ERROR("REG_ACCESS_ERR", "Failed to access server"),
	
	INVALID_LANGUAGE_CONFIGURED("REG-INIT-002", "**** ResourceBundle is not availabe for configured language(s) ! ****"),

	REG_ACK_RECEIPT_READ_ERROR("REG-ACK-001" ,"Acknowledgment receipt integrity check failed"),
	REG_FILE_SIGNATURE_ERROR("REG-SIGN-001" ,"Downloaded file signature verification failed"),
	PRE_REG_PACKET_ENTRIES_THRESHOLD_CROSSED( "PREREG-SYN-001", "Entries count in pre-reg zip greater than limit"),
	PRE_REG_PACKET_ZIP_SIZE_THRESHOLD_CROSSED( "PREREG-SYN-002", "Pre-reg zip read size is greater than limit"),
	PRE_REG_PACKET_ZIP_COMPRESSED_RATIO_EXCEEDED( "PREREG-SYN-003", "Pre-reg zip compressed ratio exceeded");

	/**
	 * The constructor
	 */
	private RegistrationExceptionConstants(String errorCode, String errorMessage) {
		this.errorCode = errorCode;
		this.errorMessage = errorMessage;
	}
	
	private final String errorCode;
	private final String errorMessage;
	
	/**
	 * @return the errorCode
	 */
	public String getErrorCode() {
		return errorCode;
	}
	
	/**
	 * @return the errorMessage
	 */
	public String getErrorMessage() {
		return errorMessage;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy