From 4606362f1e775b03caf14fb806865abaac01b5dc Mon Sep 17 00:00:00 2001 From: karen-hedges <133129444+karen-hedges@users.noreply.github.com> Date: Fri, 17 Jan 2025 17:56:55 +0000 Subject: [PATCH] DMP-4613 Add ARM RPO check for getExtendedProductionsByMatter status Added PMD fixes --- .../java/uk/gov/hmcts/darts/arm/rpo/impl/ArmRpoApiImpl.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/uk/gov/hmcts/darts/arm/rpo/impl/ArmRpoApiImpl.java b/src/main/java/uk/gov/hmcts/darts/arm/rpo/impl/ArmRpoApiImpl.java index 73fb503bed..122f828fde 100644 --- a/src/main/java/uk/gov/hmcts/darts/arm/rpo/impl/ArmRpoApiImpl.java +++ b/src/main/java/uk/gov/hmcts/darts/arm/rpo/impl/ArmRpoApiImpl.java @@ -710,9 +710,8 @@ private void handleResponseStatus(UserAccountEntity userAccount, BaseRpoResponse armRpoExecutionDetailEntity, userAccount); } } catch (IllegalArgumentException e) { - throw handleFailureAndCreateException(errorMessage.append("ARM RPO API response status is invalid - ") - .append(baseRpoResponse).toString(), - armRpoExecutionDetailEntity, userAccount); + log.error(errorMessage.append("ARM RPO API response status is invalid - ").append(baseRpoResponse).toString(), e); + throw handleFailureAndCreateException(errorMessage.toString(), armRpoExecutionDetailEntity, userAccount); } }