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.
dev-pending-01-02-2026
Naeem Ullah 1 week ago
parent b624d4a0c3
commit ad0504add6

@ -5,6 +5,6 @@ import com.mfsys.common.configuration.exception.ApplicationException;
public class MismatchTransactionAmtException extends ApplicationException { public class MismatchTransactionAmtException extends ApplicationException {
public MismatchTransactionAmtException(String porOrgacode) { public MismatchTransactionAmtException(String porOrgacode) {
super(porOrgacode, ERRCode.MISSING_TRX_AMOUNT); super(porOrgacode, ERRCode.MISMATCH_TRANSACTION_AMT);
} }
} }

@ -9,7 +9,7 @@ public enum ERRCode implements ErrorMessage {
INVALID_CREDENTIALS("ERR_SEC_0004", "Invalid credentials"), INVALID_CREDENTIALS("ERR_SEC_0004", "Invalid credentials"),
USER_NOT_FOUND("ERR_SEC_0005", "User not found"), USER_NOT_FOUND("ERR_SEC_0005", "User not found"),
WRONG_PASSWORD("ERR_SEC_0006", "Incorrect password"), 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"), 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_TRX_AMOUNT("ERR_TRX_0003","Credit and Debit amounts are required"),
MISSING_GL_CODE("ERR_GL_0001","Credit and Debit GL codes are required"), MISSING_GL_CODE("ERR_GL_0001","Credit and Debit GL codes are required"),

Loading…
Cancel
Save