FINERACT-1971: Marking the fallback method as public so it works properly with Resilience4J
This commit is contained in:
committed by
Arnold Gálovics
parent
3b46332443
commit
35171c0823
+1
-1
@@ -215,7 +215,7 @@ public class SynchronousCommandProcessingService implements CommandProcessingSer
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
private CommandProcessingResult fallbackExecuteCommand(Exception e) {
|
public CommandProcessingResult fallbackExecuteCommand(Exception e) {
|
||||||
if (e instanceof RollbackTransactionAsCommandIsNotApprovedByCheckerException ex) {
|
if (e instanceof RollbackTransactionAsCommandIsNotApprovedByCheckerException ex) {
|
||||||
return logCommand(ex.getCommandSourceResult());
|
return logCommand(ex.getCommandSourceResult());
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -155,7 +155,7 @@ public class SchedularWritePlatformServiceJpaRepositoryImpl implements Schedular
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
private boolean fallbackProcessJobDetailForExecution(Exception e) {
|
public boolean fallbackProcessJobDetailForExecution(Exception e) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -2426,7 +2426,7 @@ public class LoanWritePlatformServiceJpaRepositoryImpl implements LoanWritePlatf
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
private void fallbackRecalculateInterest(Throwable t) {
|
public void fallbackRecalculateInterest(Throwable t) {
|
||||||
// NOTE: allow caller to catch the exceptions
|
// NOTE: allow caller to catch the exceptions
|
||||||
// NOTE: wrap throwable only if really necessary
|
// NOTE: wrap throwable only if really necessary
|
||||||
throw errorHandler.getMappable(t, null, null, "loan.recalculateinterest");
|
throw errorHandler.getMappable(t, null, null, "loan.recalculateinterest");
|
||||||
|
|||||||
+2
-2
@@ -1378,8 +1378,8 @@ public class SavingsAccountWritePlatformServiceJpaRepositoryImpl implements Savi
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
private SavingsAccountData fallbackPostInterest(SavingsAccountData savingsAccountData, boolean postInterestAs,
|
public SavingsAccountData fallbackPostInterest(SavingsAccountData savingsAccountData, boolean postInterestAs, LocalDate transactionDate,
|
||||||
LocalDate transactionDate, boolean backdatedTxnsAllowedTill, Throwable t) {
|
boolean backdatedTxnsAllowedTill, Throwable t) {
|
||||||
// NOTE: allow caller to catch the exceptions
|
// NOTE: allow caller to catch the exceptions
|
||||||
// NOTE: wrap throwable only if really necessary
|
// NOTE: wrap throwable only if really necessary
|
||||||
throw errorHandler.getMappable(t, null, null, "savings.postinterest");
|
throw errorHandler.getMappable(t, null, null, "savings.postinterest");
|
||||||
|
|||||||
Reference in New Issue
Block a user