diff --git a/CHANGELOG.md b/CHANGELOG.md
index d210a5f..5b0265c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
# Changelog for Resource Registry Context Client
+## [v4.0.1-SNAPSHOT]
+
+- Uniformed raised exception [#21993]
## [v4.0.0]
diff --git a/pom.xml b/pom.xml
index d5fd12d..8fbfe35 100644
--- a/pom.xml
+++ b/pom.xml
@@ -10,7 +10,7 @@
org.gcube.information-system
resource-registry-context-client
- 4.0.0
+ 4.0.1-SNAPSHOT
Resource Registry Context Client
Resource Registry Context Client is a library designed to interact with Resource Registry Context APIs
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 d77e18d..6a5205a 100644
--- a/src/main/java/org/gcube/informationsystem/resourceregistry/context/ResourceRegistryContextClient.java
+++ b/src/main/java/org/gcube/informationsystem/resourceregistry/context/ResourceRegistryContextClient.java
@@ -25,9 +25,9 @@ public interface ResourceRegistryContextClient {
public Context readCurrentContext() throws ContextNotFoundException, ResourceRegistryException;
- public Context update(Context context) throws ResourceRegistryException;
+ public Context update(Context context) throws ContextNotFoundException, ResourceRegistryException;
- public String update(String context) throws ResourceRegistryException;
+ public String update(String context) throws ContextNotFoundException, ResourceRegistryException;
public boolean delete(Context context) throws ContextNotFoundException, ResourceRegistryException;
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 bb98af7..2bfcf8c 100644
--- a/src/main/java/org/gcube/informationsystem/resourceregistry/context/ResourceRegistryContextClientImpl.java
+++ b/src/main/java/org/gcube/informationsystem/resourceregistry/context/ResourceRegistryContextClientImpl.java
@@ -212,7 +212,7 @@ public class ResourceRegistryContextClientImpl implements ResourceRegistryContex
}
}
- public String internalUpdate(Context context) throws ResourceRegistryException {
+ public String internalUpdate(Context context) throws ContextNotFoundException, ResourceRegistryException {
try {
String contextString = ElementMapper.marshal(context);
logger.trace("Going to update {}", contextString);
@@ -244,7 +244,7 @@ public class ResourceRegistryContextClientImpl implements ResourceRegistryContex
}
@Override
- public Context update(Context context) throws ResourceRegistryException {
+ public Context update(Context context) throws ContextNotFoundException, ResourceRegistryException {
try {
String res = internalUpdate(context);
return ElementMapper.unmarshal(Context.class, res);
@@ -258,7 +258,7 @@ public class ResourceRegistryContextClientImpl implements ResourceRegistryContex
}
@Override
- public String update(String context) throws ResourceRegistryException {
+ public String update(String context) throws ContextNotFoundException, ResourceRegistryException {
try {
Context c = ElementMapper.unmarshal(Context.class, context);
return internalUpdate(c);