FINERACT-2081: Retrieving Loan Product details with invalid external-id results in 500 error

This commit is contained in:
Jose Alberto Hernandez
2024-11-29 19:36:20 +01:00
committed by Adam Saghy
parent d57e72ec2f
commit 8d12bc04e9
3 changed files with 28 additions and 2 deletions
@@ -32,7 +32,8 @@ public class LoanProductNotFoundException extends AbstractPlatformResourceNotFou
}
public LoanProductNotFoundException(final ExternalId externalId) {
super("error.msg.loanproduct.id.invalid", "Loan product with identifier " + externalId + " does not exist", externalId);
super("error.msg.loanproduct.id.invalid", "Loan product with identifier " + externalId.getValue() + " does not exist",
externalId.getValue());
}
public LoanProductNotFoundException(Long id, EmptyResultDataAccessException e) {