Skip to content

Commit

Permalink
fixed exception
Browse files Browse the repository at this point in the history
  • Loading branch information
shilpigoel-goaco committed Jan 10, 2025
1 parent 629bd25 commit cfd595b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class GetOrganisationMouSignatureLatestUseCase(IOrganisationRepository or

if (mouSignatures == null || !mouSignatures.Any())
{
throw new InvalidOperationException($"No MOU signatures found for organisation {organisationId}.");
throw new UnknownMouException($"No MOU signatures found for organisation {organisationId}.");
}

var latestSignature = mouSignatures.OrderByDescending(m => m.CreatedOn).First();
Expand Down

0 comments on commit cfd595b

Please sign in to comment.