Skip to content

Commit

Permalink
FINERACT-2081: fix incorrect exception type
Browse files Browse the repository at this point in the history
  • Loading branch information
Marta Jankovics authored and adamsaghy committed Oct 21, 2024
1 parent 4e46e19 commit 806ee69
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
import org.apache.fineract.portfolio.charge.domain.ChargeRepositoryWrapper;
import org.apache.fineract.portfolio.delinquency.domain.DelinquencyBucket;
import org.apache.fineract.portfolio.delinquency.domain.DelinquencyBucketRepository;
import org.apache.fineract.portfolio.delinquency.exception.DelinquencyBucketNotFoundException;
import org.apache.fineract.portfolio.floatingrates.domain.FloatingRate;
import org.apache.fineract.portfolio.floatingrates.domain.FloatingRateRepositoryWrapper;
import org.apache.fineract.portfolio.fund.domain.Fund;
Expand Down Expand Up @@ -173,7 +174,7 @@ private DelinquencyBucket findDelinquencyBucketIdIfProvided(final Long delinquen
DelinquencyBucket delinquencyBucket = null;
if (delinquencyBucketId != null) {
delinquencyBucket = delinquencyBucketRepository.findById(delinquencyBucketId)
.orElseThrow(() -> new FundNotFoundException(delinquencyBucketId));
.orElseThrow(() -> DelinquencyBucketNotFoundException.notFound(delinquencyBucketId));
}
return delinquencyBucket;
}
Expand Down

0 comments on commit 806ee69

Please sign in to comment.