Skip to content

Commit

Permalink
exception code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Stevens committed Dec 24, 2024
1 parent 44b49eb commit be8f820
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import ca.uhn.fhir.batch2.api.IJobCoordinator;
import ca.uhn.fhir.batch2.jobs.replacereferences.ReplaceReferencesJobParameters;
import ca.uhn.fhir.batch2.util.Batch2TaskHelper;
import ca.uhn.fhir.i18n.Msg;
import ca.uhn.fhir.jpa.api.config.JpaStorageSettings;
import ca.uhn.fhir.jpa.api.dao.DaoRegistry;
import ca.uhn.fhir.jpa.dao.data.IResourceLinkDao;
Expand Down Expand Up @@ -128,7 +129,7 @@ private IBaseParameters replaceReferencesPreferSync(
.execute(() -> getAllPidsWithLimit(theReplaceReferencesRequest));

if (accumulator.isTruncated()) {
throw new PreconditionFailedException(
throw new PreconditionFailedException(Msg.code(2597) +
"Number of resources with references to " + theReplaceReferencesRequest.sourceId
+ " exceeds the resource-limit "
+ theReplaceReferencesRequest.resourceLimit
Expand Down

0 comments on commit be8f820

Please sign in to comment.