From ad0504add61a28d4d7b32cf2edccad8b03f035db Mon Sep 17 00:00:00 2001 From: Naeem Ullah Date: Wed, 28 Jan 2026 10:38:48 +0500 Subject: [PATCH] Rename transaction amount error code for consistency Replaced ERRCode.TRANSACTIONAMOUNT with ERRCode.MISMATCH_TRANSACTION_AMT to improve naming consistency and clarity in error handling for mismatched transaction amounts. --- .../client/exception/MismatchTransactionAmtException.java | 2 +- .../java/com/mfsys/common/configuration/constant/ERRCode.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aconnect/src/main/java/com/mfsys/aconnect/client/exception/MismatchTransactionAmtException.java b/aconnect/src/main/java/com/mfsys/aconnect/client/exception/MismatchTransactionAmtException.java index 3c3feb5..5440dc4 100644 --- a/aconnect/src/main/java/com/mfsys/aconnect/client/exception/MismatchTransactionAmtException.java +++ b/aconnect/src/main/java/com/mfsys/aconnect/client/exception/MismatchTransactionAmtException.java @@ -5,6 +5,6 @@ import com.mfsys.common.configuration.exception.ApplicationException; public class MismatchTransactionAmtException extends ApplicationException { public MismatchTransactionAmtException(String porOrgacode) { - super(porOrgacode, ERRCode.MISSING_TRX_AMOUNT); + super(porOrgacode, ERRCode.MISMATCH_TRANSACTION_AMT); } } \ No newline at end of file diff --git a/common/src/main/java/com/mfsys/common/configuration/constant/ERRCode.java b/common/src/main/java/com/mfsys/common/configuration/constant/ERRCode.java index bb04c39..170be19 100644 --- a/common/src/main/java/com/mfsys/common/configuration/constant/ERRCode.java +++ b/common/src/main/java/com/mfsys/common/configuration/constant/ERRCode.java @@ -9,7 +9,7 @@ public enum ERRCode implements ErrorMessage { INVALID_CREDENTIALS("ERR_SEC_0004", "Invalid credentials"), USER_NOT_FOUND("ERR_SEC_0005", "User not found"), WRONG_PASSWORD("ERR_SEC_0006", "Incorrect password"), - TRANSACTIONAMOUNT("ERR_TRX_0001","Credit and Debit amounts must be equal"), + MISMATCH_TRANSACTION_AMT("ERR_TRX_0001","Credit and Debit amounts must be equal"), INVALID_TRANSACTIONAMOUNT("ERR_TRX_0002","Credit and Debit amounts must be greater than 0"), MISSING_TRX_AMOUNT("ERR_TRX_0003","Credit and Debit amounts are required"), MISSING_GL_CODE("ERR_GL_0001","Credit and Debit GL codes are required"),