Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ public enum ApplicationErrorCode {
APPLICATION_INSERT_EXCEPTION("KER-MSD-101", "Error occurred while inserting application details"),
APPLICATION_NOT_FOUND_EXCEPTION("KER-MSD-002", "Application not found"),
APPLICATION_REQUEST_EXCEPTION("KER-MSD-201", "Bad Request Found"),
APPLICATION_CONFIG_FETCH_EXCEPTION("KER-MSD-193", "Error occurred while fetching Application config");
APPLICATION_CONFIG_FETCH_EXCEPTION("KER-MSD-193", "Error occurred while fetching Application config"),
DATA_ALREADY_EXIST_EXCEPTION("KER-MSD-APT", "Center Type already exist");


private final String errorCode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,11 @@ public CodeAndLanguageCodeID createRegistrationCenterType(
ApplicationErrorCode.APPLICATION_INSERT_EXCEPTION.getErrorMessage()
+ ExceptionUtils.parseException(exception)),
"ADM-556");
throw new MasterDataServiceException(ApplicationErrorCode.APPLICATION_INSERT_EXCEPTION.getErrorCode(),
ApplicationErrorCode.APPLICATION_INSERT_EXCEPTION.getErrorMessage()
throw new MasterDataServiceException(
ApplicationErrorCode.DATA_ALREADY_EXIST_EXCEPTION.getErrorCode(),
ApplicationErrorCode.DATA_ALREADY_EXIST_EXCEPTION.getErrorMessage()
+ ExceptionUtils.parseException(exception));
}
}
CodeAndLanguageCodeID codeAndLanguageCodeID = new CodeAndLanguageCodeID();
MapperUtils.map(registrationCenterType, codeAndLanguageCodeID);
auditUtil.auditRequest(
Expand Down
Loading