diff --git a/basyx.submodelrepository/basyx.submodelrepository-backend-inmemory/src/main/java/org/eclipse/digitaltwin/basyx/submodelrepository/InMemorySubmodelRepository.java b/basyx.submodelrepository/basyx.submodelrepository-backend-inmemory/src/main/java/org/eclipse/digitaltwin/basyx/submodelrepository/InMemorySubmodelRepository.java index 747735cba..e22bbc98e 100644 --- a/basyx.submodelrepository/basyx.submodelrepository-backend-inmemory/src/main/java/org/eclipse/digitaltwin/basyx/submodelrepository/InMemorySubmodelRepository.java +++ b/basyx.submodelrepository/basyx.submodelrepository-backend-inmemory/src/main/java/org/eclipse/digitaltwin/basyx/submodelrepository/InMemorySubmodelRepository.java @@ -230,11 +230,9 @@ public Submodel getSubmodelByIdMetadata(String submodelId) { submodelDeepCopy.setSubmodelElements(null); return submodelDeepCopy; } catch (DeserializationException e) { - e.printStackTrace(); - throw new RuntimeException("Unable to deserialize the Submodel"); + throw new RuntimeException("Unable to deserialize the Submodel", e); } catch (SerializationException e) { - e.printStackTrace(); - throw new RuntimeException("Unable to serialize the Submodel"); + throw new RuntimeException("Unable to serialize the Submodel", e); } }