From 228607dd12af29a7a55cfa32102cdd25cc55610e Mon Sep 17 00:00:00 2001 From: karen-hedges <133129444+karen-hedges@users.noreply.github.com> Date: Tue, 21 Jan 2025 18:25:08 +0000 Subject: [PATCH] DMP-4613 Add ARM RPO check for getExtendedProductionsByMatter status Added missing new exception --- .../arm/exception/ArmRpoInProgressException.java | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/main/java/uk/gov/hmcts/darts/arm/exception/ArmRpoInProgressException.java diff --git a/src/main/java/uk/gov/hmcts/darts/arm/exception/ArmRpoInProgressException.java b/src/main/java/uk/gov/hmcts/darts/arm/exception/ArmRpoInProgressException.java new file mode 100644 index 0000000000..39173e7bd8 --- /dev/null +++ b/src/main/java/uk/gov/hmcts/darts/arm/exception/ArmRpoInProgressException.java @@ -0,0 +1,11 @@ +package uk.gov.hmcts.darts.arm.exception; + +import uk.gov.hmcts.darts.common.exception.DartsException; + +public class ArmRpoInProgressException extends DartsException { + + public ArmRpoInProgressException(String rpoEndpoint, Integer executionId) { + super(String.format("RPO endpoint %s is already in progress for execution id %s", rpoEndpoint, executionId)); + } + +}