diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/context/ResourceRegistryContextClient.java b/src/main/java/org/gcube/informationsystem/resourceregistry/context/ResourceRegistryContextClient.java index 9d38861..09dbc63 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/context/ResourceRegistryContextClient.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/context/ResourceRegistryContextClient.java @@ -31,10 +31,10 @@ public interface ResourceRegistryContextClient { public Context update(Context context) - throws ContextAlreadyPresentException, ResourceRegistryException; + throws ResourceRegistryException; public String update(String context) - throws ContextAlreadyPresentException, ResourceRegistryException; + throws ResourceRegistryException; public boolean delete(Context context) diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/context/ResourceRegistryContextClientImpl.java b/src/main/java/org/gcube/informationsystem/resourceregistry/context/ResourceRegistryContextClientImpl.java index 298b055..79d6288 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/context/ResourceRegistryContextClientImpl.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/context/ResourceRegistryContextClientImpl.java @@ -142,7 +142,7 @@ public class ResourceRegistryContextClientImpl implements ResourceRegistryContex } @Override - public Context update(Context context) throws ContextAlreadyPresentException, ResourceRegistryException { + public Context update(Context context) throws ResourceRegistryException { try { String contextString = ISMapper.marshal(context); String res = update(contextString); @@ -157,7 +157,7 @@ public class ResourceRegistryContextClientImpl implements ResourceRegistryContex } @Override - public String update(String context) throws ContextAlreadyPresentException, ResourceRegistryException { + public String update(String context) throws ResourceRegistryException { try { logger.trace("Going to update: {}", context);