From dd74856fb59fc964d29008350aaf4a265525853b Mon Sep 17 00:00:00 2001 From: Matthias Fischer Date: Thu, 1 Aug 2024 12:35:40 +0200 Subject: [PATCH] chore(quality): [#841] formatting --- .../tractusx/irs/aaswrapper/job/delegate/AbstractDelegate.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/irs-api/src/main/java/org/eclipse/tractusx/irs/aaswrapper/job/delegate/AbstractDelegate.java b/irs-api/src/main/java/org/eclipse/tractusx/irs/aaswrapper/job/delegate/AbstractDelegate.java index 3ce5faaf5..d29b64494 100644 --- a/irs-api/src/main/java/org/eclipse/tractusx/irs/aaswrapper/job/delegate/AbstractDelegate.java +++ b/irs-api/src/main/java/org/eclipse/tractusx/irs/aaswrapper/job/delegate/AbstractDelegate.java @@ -109,6 +109,7 @@ protected SubmodelDescriptor requestSubmodel(final EdcSubmodelFacade submodelFac private SubmodelDescriptor getSubmodel(final EdcSubmodelFacade submodelFacade, final Endpoint digitalTwinRegistryEndpoint, final List connectorEndpoints, final String bpn) throws EdcClientException { + for (final String connectorEndpoint : connectorEndpoints) { try { return submodelFacade.getSubmodelPayload(connectorEndpoint, @@ -118,6 +119,7 @@ private SubmodelDescriptor getSubmodel(final EdcSubmodelFacade submodelFacade, log.info("EdcClientException while accessing digitalTwinRegistryEndpoint '{}'", connectorEndpoint, e); } } + throw new EdcClientException( String.format("Called %s connectorEndpoints but did not get any submodels. Connectors: '%s'", connectorEndpoints.size(), String.join(", ", connectorEndpoints))); // TODO (mfischer)