Skip to content
Merged
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 @@ -157,7 +157,7 @@ private void handleDataIntegrityIssues(final JsonCommand command, final Throwabl
"Account Format preferences for Account type `" + entityAccountType.getCode() + "` already exists", "externalId",
entityAccountType.getValue(), entityAccountType.getCode());
}
LOG.error("Error occured.", dve);
LOG.error("Error occurred.", dve);
throw ErrorHandler.getMappable(dve, "error.msg.account.number.format.unknown.data.integrity.issue",
"Unknown data integrity issue with resource.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ private Count importEntity(final Workbook workbook, final List<CenterData> cente
statusCell.setCellStyle(ImportHandlerUtils.getCellStyle(workbook, IndexedColors.LIGHT_GREEN));
} catch (RuntimeException ex) {
errorCount++;
LOG.error("Runtime Exception occured in importEntity function", ex);
LOG.error("Runtime Exception occurred in importEntity function", ex);
errorMessage = ImportHandlerUtils.getErrorMessage(ex);
writeCenterErrorMessage(workbook, centerId, errorMessage, progressLevel, statusCell, errorReportCell, row);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public Long importWorkbook(String entity, InputStream inputStream, FormDataConte
} catch (IOException e) {
log.error("Problem occurred in importWorkbook function", e);
throw new GeneralPlatformDomainRuleException("error.msg.io.exception",
"IO exception occured with " + fileDetail.getFileName() + " " + e.getMessage(), e);
"IO exception occurred with " + fileDetail.getFileName() + " " + e.getMessage(), e);

}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ private void handleDataIntegrityIssues(@SuppressWarnings("unused") final JsonCom
"The group, client or staff provided has no email address.", "id");
}

LOG.error("Error occured.", dve);
LOG.error("Error occurred.", dve);
throw ErrorHandler.getMappable(dve, "error.msg.email.unknown.data.integrity.issue",
"Unknown data integrity issue with resource: " + realCause.getMessage());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ public void insertDirectCampaignIntoSmsOutboundTable(final Loan loan, final SmsC
}
}
} catch (final IOException | RuntimeException e) {
log.error("Error occured.", e);
log.error("Error occurred.", e);
}
}

Expand Down Expand Up @@ -338,7 +338,7 @@ public void insertDirectCampaignIntoSmsOutboundTable(final Client client, final
}
}
} catch (final IOException | RuntimeException e) {
log.error("Error occured.", e);
log.error("Error occurred.", e);
}
}

Expand Down Expand Up @@ -379,7 +379,7 @@ public void insertDirectCampaignIntoSmsOutboundTable(final SavingsAccount saving
}
}
} catch (final IOException | RuntimeException e) {
log.error("Error occured.", e);
log.error("Error occurred.", e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private void handleCodeValueDataIntegrityIssues(final JsonCommand command, final
"A code value with lable '" + name + "' already exists", "name", name);
}

LOG.error("Error occured.", dve);
LOG.error("Error occurred.", dve);
throw ErrorHandler.getMappable(dve, "error.msg.code.value.unknown.data.integrity.issue",
"Unknown data integrity issue with resource: " + realCause.getMessage());
}
Expand Down Expand Up @@ -163,7 +163,7 @@ public CommandProcessingResult deleteCodeValue(final Long codeId, final Long cod
.withSubEntityId(codeValueId) //
.build();
} catch (final JpaSystemException | DataIntegrityViolationException dve) {
LOG.error("Error occured.", dve);
LOG.error("Error occurred.", dve);
final Throwable realCause = dve.getMostSpecificCause();
if (realCause.getMessage().contains("code_value")) {
throw new PlatformDataIntegrityException("error.msg.codeValue.in.use", "This code value is in use", codeValueId, dve);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ private void handleCodeDataIntegrityIssues(final JsonCommand command, final Thro
"name", name);
}

LOG.error("Error occured.", dve);
LOG.error("Error occurred.", dve);
throw ErrorHandler.getMappable(dve, "error.msg.cund.unknown.data.integrity.issue",
"Unknown data integrity issue with resource: " + realCause.getMessage());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void addSurveyConfig(final String name) {
* Guaranteed to throw an exception no matter what the data integrity issue is.
*/
private void handleDataIntegrityIssues(final Throwable realCause, final NonTransientDataAccessException dve) {
LOG.error("Error occured.", dve);
LOG.error("Error occurred.", dve);
throw ErrorHandler.getMappable(dve, "error.msg.globalConfiguration.unknown.data.integrity.issue",
"Unknown data integrity issue with resource: " + realCause.getMessage());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public String okHttpConnectionMethod(String userName, String password, String su
responseMessage = response.body().string();
} catch (IOException e) {

log.error("error occured in HTTP request-response method.", e);
log.error("error occurred in HTTP request-response method.", e);
}

if (responseCode != HttpURLConnection.HTTP_OK) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1431,7 +1431,7 @@ private void handleDataIntegrityIssues(String dataTableName, Long appTableId, fi
msgCode += ".unknown.data.integrity.issue";
msgArgs = new Object[] { dataTableName, e };
}
log.error("Error occured.", e);
log.error("Error occurred.", e);
throw ErrorHandler.getMappable(e, msgCode, msg, param, msgArgs);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ private void handleReportDataIntegrityIssues(final JsonCommand command, final Th
msgCode += ".unknown.data.integrity.issue";
msgArgs = new Object[] { dae };
}
log.error("Error occured.", dae);
log.error("Error occurred.", dae);
throw ErrorHandler.getMappable(dae, msgCode, msg, param, msgArgs);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ private void handleReportDataIntegrityIssues(final JsonCommand command, final Th
"name", name);
}

LOG.error("Error occured.", dve);
LOG.error("Error occurred.", dve);
throw ErrorHandler.getMappable(dve, "error.msg.report.unknown.data.integrity.issue",
"Unknown data integrity issue with resource: " + realCause.getMessage());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ private void handleDataIntegrityIssues(final JsonCommand command, final Throwabl
"EntityMapping from " + fromId + " to " + toId + " already exist");
}

LOG.error("Error occured.", dve);
LOG.error("Error occurred.", dve);
throw ErrorHandler.getMappable(dve, "error.msg.entity.mapping", "Unknown data integrity issue with resource.");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public void onResponse(@SuppressWarnings("unused") Call call, retrofit2.Response

@Override
public void onFailure(@SuppressWarnings("unused") Call call, Throwable t) {
LOG.error("URL: {} - Retrofit failure occured", url, t);
LOG.error("URL: {} - Retrofit failure occurred", url, t);
}
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public void startScheduler() {
}
}
} catch (final SchedulerException e) {
log.error("Error occured.", e);
log.error("Error occurred.", e);
}
}
jobDetail.setTriggerMisfired(false);
Expand Down Expand Up @@ -277,7 +277,7 @@ public void stopAllSchedulers() {
try {
scheduler.shutdown();
} catch (final SchedulerException e) {
log.error("Error occured.", e);
log.error("Error occurred.", e);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ private void handleDataIntegrityIssues(final JsonCommand jsonCommand, final Thro
"Report mailing job with name `" + name + "` already exists", ReportMailingJobConstants.NAME_PARAM_NAME, name);
}

LOG.error("Error occured.", dve);
LOG.error("Error occurred.", dve);
throw ErrorHandler.getMappable(dve, "error.msg.charge.unknown.data.integrity.issue",
"Unknown data integrity issue with resource: " + realCause.getMessage());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public void sendTriggeredMessage(Collection<SmsMessage> smsMessages, long provid
log.debug("Sending triggered SMS to specific provider with request - {}", request);
this.taskExecutor.execute(new SmsTask(apiQueueResourceDatas, ThreadLocalContextUtil.getContext()));
} catch (Exception e) {
log.error("Error occured.", e);
log.error("Error occurred.", e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private void handleDataIntegrityIssues(@SuppressWarnings("unused") final JsonCom
"The group, client or staff provided has no mobile no.", "id");
}

LOG.error("Error occured.", dve);
LOG.error("Error occurred.", dve);
throw ErrorHandler.getMappable(dve, "error.msg.sms.unknown.data.integrity.issue",
"Unknown data integrity issue with resource: " + realCause.getMessage());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public CommandProcessingResult update(Long likelihoodId, JsonCommand command) {
* Guaranteed to throw an exception no matter what the data integrity issue is.
*/
private void handleDataIntegrityIssues(final Throwable realCause, final NonTransientDataAccessException dve) {
LOG.error("Error occured.", dve);
LOG.error("Error occurred.", dve);
throw ErrorHandler.getMappable(dve, "error.msg.likelihood.unknown.data.integrity.issue",
"Unknown data integrity issue with resource: " + realCause.getMessage());
}
Expand Down
Loading