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 be8f820 commit a6544b7
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ private IBaseParameters replaceReferencesPreferSync(
.execute(() -> getAllPidsWithLimit(theReplaceReferencesRequest));

if (accumulator.isTruncated()) {
throw new PreconditionFailedException(Msg.code(2597) +
"Number of resources with references to " + theReplaceReferencesRequest.sourceId
+ " exceeds the resource-limit "
+ theReplaceReferencesRequest.resourceLimit
+ ". Submit the request asynchronsly by adding the HTTP Header 'Prefer: respond-async'.");
throw new PreconditionFailedException(Msg.code(2597) + "Number of resources with references to "
+ theReplaceReferencesRequest.sourceId
+ " exceeds the resource-limit "
+ theReplaceReferencesRequest.resourceLimit
+ ". Submit the request asynchronsly by adding the HTTP Header 'Prefer: respond-async'.");
}

Bundle result = myReplaceReferencesPatchBundleSvc.patchReferencingResources(
Expand Down

0 comments on commit a6544b7

Please sign in to comment.