Skip to content
Open
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 @@ -32,7 +32,7 @@ public enum GlAccountInvalidUpdateReason {

public String errorMessage() {
if (name().equalsIgnoreCase("TRANSANCTIONS_LOGGED")) {
return "This Usage of this (detail) GL Account as it already has transactions logged against it";
return "This (detail) GL Account cannot be updated as it already has transactions logged against it";
}
return name();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

public class LoanChargeCannotBeDeletedException extends AbstractPlatformDomainRuleException {

/*** enum of reasons of why Loan Charge cannot be waived **/
/*** enum of reasons of why Loan Charge cannot be deleted **/
public enum LoanChargeCannotBeDeletedReason {

ALREADY_PAID, //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

public class LoanChargeCannotBePayedException extends AbstractPlatformDomainRuleException {

/*** enum of reasons of why Loan Charge cannot be waived **/
/*** enum of reasons of why Loan Charge cannot be paid **/
public enum LoanChargeCannotBePayedReason {

ALREADY_PAID, //
Expand All @@ -37,11 +37,11 @@ public String errorMessage() {
} else if (name().equalsIgnoreCase("ALREADY_WAIVED")) {
return "This loan charge has already been waived";
} else if (name().equalsIgnoreCase("LOAN_INACTIVE")) {
return "This loan charge can be payed as the loan associated with it is currently inactive";
return "This loan charge cannot be paid as the loan associated with it is currently inactive";
} else if (name().equalsIgnoreCase("CHARGE_NOT_ACCOUNT_TRANSFER")) {
return "This loan charge can be payed as the charge payment mode is not account transfer";
return "This loan charge cannot be paid as the charge payment mode is not account transfer";
} else if (name().equalsIgnoreCase("CHARGE_NOT_PAYABLE")) {
return "This loan charge is not Payable through account transfer";
return "This loan charge is not payable through account transfer";
}

return name();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

public class LoanChargeCannotBeUpdatedException extends AbstractPlatformDomainRuleException {

/*** enum of reasons of why Loan Charge cannot be waived **/
/*** enum of reasons of why Loan Charge cannot be updated **/
public enum LoanChargeCannotBeUpdatedReason {

ALREADY_PAID, //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ public String errorMessage() {
} else if (name().equalsIgnoreCase("ALREADY_WAIVED")) {
return "This loan charge has already been waived";
} else if (name().equalsIgnoreCase("LOAN_INACTIVE")) {
return "This loan charge can be waived as the loan associated with it is currently inactive";
return "This loan charge cannot be waived as the loan associated with it is currently inactive";
} else if (name().equalsIgnoreCase("WAIVE_NOT_ALLOWED_FOR_CHARGE")) {
return "This loan charge can be waived";
return "This loan charge cannot be waived";
}

return name();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ public enum LoanChargeWaiveCannotUndoReason {
public String errorMessage() {

if (name().equalsIgnoreCase("ALREADY_PAID")) {
return "This loan charge has been completely paid";
return "This loan charge waive cannot be reversed as the charge has already been paid";
} else if (name().equalsIgnoreCase("ALREADY_WAIVED")) {
return "This loan charge has already been waived";
} else if (name().equalsIgnoreCase("LOAN_INACTIVE")) {
return "This loan charge can be waived as the loan associated with it is currently inactive";
return "This loan charge waive cannot be reversed as the loan associated with it is currently inactive";
} else if (name().equalsIgnoreCase("WAIVE_NOT_ALLOWED_FOR_CHARGE")) {
return "This loan charge can be waived";
return "This loan charge waive cannot be reversed";
} else if (name().equalsIgnoreCase("NOT_WAIVED")) {
return "This loan charge waive cannot be reversed as this charge is not waived";
} else if (name().equalsIgnoreCase("ALREADY_REVERSED")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

public class CollateralCannotBeCreatedException extends AbstractPlatformDomainRuleException {

/*** enum of reasons of why Loan Charge cannot be waived **/
/*** enum of reasons of why Collateral cannot be created **/
public enum LoanCollateralCannotBeCreatedReason {

LOAN_NOT_IN_SUBMITTED_AND_PENDING_APPROVAL_STAGE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@

public class CollateralCannotBeDeletedException extends AbstractPlatformDomainRuleException {

/*** enum of reasons of why Loan Charge cannot be waived **/
/*** enum of reasons of why Collateral cannot be deleted **/
public enum LoanCollateralCannotBeDeletedReason {

LOAN_NOT_IN_SUBMITTED_AND_PENDING_APPROVAL_STAGE;

public String errorMessage() {
if (name().toString().equalsIgnoreCase("LOAN_NOT_IN_SUBMITTED_AND_PENDING_APPROVAL_STAGE")) {
return "This collateral cannot be updated as the loan it is associated with is not in submitted and pending approval stage";
return "This collateral cannot be deleted as the loan it is associated with is not in submitted and pending approval stage";
}
return name().toString();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

public class CollateralCannotBeUpdatedException extends AbstractPlatformDomainRuleException {

/*** enum of reasons of why Loan Charge cannot be waived **/
/*** enum of reasons of why Collateral cannot be updated **/
public enum LoanCollateralCannotBeUpdatedReason {

LOAN_NOT_IN_SUBMITTED_AND_PENDING_APPROVAL_STAGE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

public class ClientCollateralCannotBeDeletedException extends AbstractPlatformDomainRuleException {

/*** enum of reasons of why Collateral cannot be waived **/
/*** enum of reasons of why Client Collateral cannot be deleted **/
public enum ClientCollateralCannotBeDeletedReason {

CLIENT_COLLATERAL_IS_ALREADY_ATTACHED;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

public class CollateralCannotBeDeletedException extends AbstractPlatformDomainRuleException {

/*** enum of reasons of why Collateral cannot be waived **/
/*** enum of reasons of why Collateral cannot be deleted **/
public enum CollateralCannotBeDeletedReason {

COLLATERAL_IS_ALREADY_ATTACHED;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ public enum PostInterestAsOnExceptionType {

public String errorMessage() {
if (name().toString().equalsIgnoreCase("FUTURE_DATE")) {
return "Cannot Post Interest in future Dates";
return "Cannot post interest in future dates";
} else if (name().toString().equalsIgnoreCase("VALID_DATE")) {
return "Please Pass a valid date";
return "Please pass a valid date";
} else if (name().toString().equalsIgnoreCase("ACTIVATION_DATE")) {
return "Post Interest Date must be after the Activation date";
return "Post interest date must be after the activation date";
} else if (name().toString().equalsIgnoreCase("LAST_TRANSACTION_DATE")) {
return "Cannot Post Interest before last transaction date";
return "Cannot post interest before last transaction date";
}
return name().toString();
}
Expand Down