Skip to content

Commit c93f64d

Browse files
FINERACT-2684: Fix typo 'occured' -> 'occurred' in portfolio module
1 parent 9273908 commit c93f64d

15 files changed

Lines changed: 17 additions & 17 deletions

fineract-provider/src/main/java/org/apache/fineract/portfolio/account/service/StandingInstructionWritePlatformServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ private void handleDataIntegrityIssues(final JsonCommand command, Throwable real
105105
throw new PlatformDataIntegrityException("error.msg.standinginstruction.duplicate.name",
106106
"Standinginstruction with name `" + name + "` already exists", "name", name);
107107
}
108-
log.error("Error occured.", dve);
108+
log.error("Error occurred.", dve);
109109
throw ErrorHandler.getMappable(dve, "error.msg.client.unknown.data.integrity.issue",
110110
"Unknown data integrity issue with resource: " + realCause.getMessage());
111111
}

fineract-provider/src/main/java/org/apache/fineract/portfolio/charge/service/ChargeWritePlatformServiceJpaRepositoryImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ private void handleDataIntegrityIssues(final JsonCommand command, final Throwabl
256256
"name", name);
257257
}
258258

259-
log.error("Error occured.", dve);
259+
log.error("Error occurred.", dve);
260260
throw ErrorHandler.getMappable(dve, "error.msg.charge.unknown.data.integrity.issue",
261261
"Unknown data integrity issue with resource: " + realCause.getMessage());
262262
}

fineract-provider/src/main/java/org/apache/fineract/portfolio/client/service/ClientChargeWritePlatformServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ private void handleDataIntegrityIssues(@SuppressWarnings("unused") final Long cl
430430
"clientChargeId", clientChargeId);
431431
}
432432

433-
log.error("Error occured.", dve);
433+
log.error("Error occurred.", dve);
434434
throw ErrorHandler.getMappable(dve, "error.msg.client.charges.unknown.data.integrity.issue",
435435
"Unknown data integrity issue with resource: " + realCause.getMessage());
436436
}

fineract-provider/src/main/java/org/apache/fineract/portfolio/client/service/ClientIdentifierWritePlatformServiceJpaRepositoryImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,6 @@ private void handleClientIdentifierDataIntegrityViolation(final String documentT
204204
}
205205

206206
private void logAsErrorUnexpectedDataIntegrityException(final Exception dve) {
207-
LOG.error("Error occured.", dve);
207+
LOG.error("Error occurred.", dve);
208208
}
209209
}

fineract-provider/src/main/java/org/apache/fineract/portfolio/client/service/ClientWritePlatformServiceJpaRepositoryImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public CommandProcessingResult deleteClient(final Long clientId) {
157157
.build();
158158
} catch (final JpaSystemException | DataIntegrityViolationException dve) {
159159
Throwable throwable = ExceptionUtils.getRootCause(dve.getCause());
160-
log.error("Error occured.", throwable);
160+
log.error("Error occurred.", throwable);
161161
throw ErrorHandler.getMappable(dve, "error.msg.client.unknown.data.integrity.issue",
162162
"Unknown data integrity issue with resource.");
163163
}
@@ -749,7 +749,7 @@ private CommandProcessingResult openSavingsAccount(final Client client, final Da
749749
}
750750

751751
private void logAsErrorUnexpectedDataIntegrityException(final Exception dve) {
752-
log.error("Error occured.", dve);
752+
log.error("Error occurred.", dve);
753753
}
754754

755755
@Transactional

fineract-provider/src/main/java/org/apache/fineract/portfolio/collateral/service/CollateralWritePlatformServiceJpaRepositoryImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public CommandProcessingResult deleteCollateral(final Long loanId, final Long co
168168
}
169169

170170
private void handleCollateralDataIntegrityViolation(final NonTransientDataAccessException dve) {
171-
log.error("Error occured.", dve);
171+
log.error("Error occurred.", dve);
172172
throw ErrorHandler.getMappable(dve, "error.msg.collateral.unknown.data.integrity.issue",
173173
"Unknown data integrity issue with resource.");
174174
}

fineract-provider/src/main/java/org/apache/fineract/portfolio/fund/service/FundWritePlatformServiceJpaRepositoryImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ private void handleFundDataIntegrityIssues(final JsonCommand command, final Thro
120120
"name", name);
121121
}
122122

123-
log.error("Error occured.", dve);
123+
log.error("Error occurred.", dve);
124124
throw ErrorHandler.getMappable(dve, "error.msg.fund.unknown.data.integrity.issue",
125125
"Unknown data integrity issue with resource: " + realCause.getMessage());
126126
}

fineract-provider/src/main/java/org/apache/fineract/portfolio/group/service/GroupRolesWritePlatformServiceJpaRepositoryImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ private void handleGroupDataIntegrityIssues(final JsonCommand command, final Thr
9999
GroupingTypesApiConstants.clientIdParamName, roleId, clientId, command.getGroupId());
100100
}
101101

102-
log.error("Error occured.", dve);
102+
log.error("Error occurred.", dve);
103103
throw ErrorHandler.getMappable(dve, "error.msg.group.unknown.data.integrity.issue", "Unknown data integrity issue with resource.");
104104
}
105105

fineract-provider/src/main/java/org/apache/fineract/portfolio/group/service/GroupingTypesWritePlatformServiceJpaRepositoryImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ public CommandProcessingResult deleteGroup(final Long groupId) {
571571
.build();
572572
} catch (final JpaSystemException | DataIntegrityViolationException dve) {
573573
Throwable throwable = ExceptionUtils.getRootCause(dve.getCause());
574-
log.error("Error occured.", throwable);
574+
log.error("Error occurred.", throwable);
575575
throw ErrorHandler.getMappable(dve, "error.msg.group.unknown.data.integrity.issue",
576576
"Unknown data integrity issue with resource.");
577577
}
@@ -760,7 +760,7 @@ private void handleGroupDataIntegrityIssues(final JsonCommand command, final Thr
760760
name);
761761
}
762762

763-
log.error("Error occured.", dve);
763+
log.error("Error occurred.", dve);
764764
throw ErrorHandler.getMappable(dve, "error.msg.group.unknown.data.integrity.issue", "Unknown data integrity issue with resource.");
765765
}
766766

fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/guarantor/service/GuarantorWritePlatformServiceJpaRepositoryIImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ private void validateLoanStatus(Loan loan) {
376376
}
377377

378378
private void handleGuarantorDataIntegrityIssues(final Throwable realCause, final NonTransientDataAccessException dve) {
379-
LOG.error("Error occured.", dve);
379+
LOG.error("Error occurred.", dve);
380380
throw ErrorHandler.getMappable(dve, "error.msg.guarantor.unknown.data.integrity.issue",
381381
"Unknown data integrity issue with resource Guarantor: " + realCause.getMessage());
382382
}

0 commit comments

Comments
 (0)