Fixed exception management

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-client@144243 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2017-02-24 10:39:27 +00:00
parent 27fd7c3fef
commit 23104b8a78
1 changed files with 4 additions and 4 deletions

View File

@ -78,7 +78,7 @@ public class ResourceRegistryClientImpl implements ResourceRegistryClient {
throw e;
} catch (Exception e) {
logger.error("Error while getting {} with UUID {}", type, uuid, e);
throw new ResourceRegistryException(e);
throw new RuntimeException(e);
}
}
@ -115,7 +115,7 @@ public class ResourceRegistryClientImpl implements ResourceRegistryClient {
throw e;
} catch (Exception e) {
logger.error("Error while getting {} instances", type, e);
throw new ResourceRegistryException(e);
throw new RuntimeException(e);
}
}
@ -157,7 +157,7 @@ public class ResourceRegistryClientImpl implements ResourceRegistryClient {
throw e;
} catch (Exception e) {
logger.error("Error while getting instances of {} from/to {}", relationType, e);
throw new ResourceRegistryException(e);
throw new RuntimeException(e);
}
}
@ -199,7 +199,7 @@ public class ResourceRegistryClientImpl implements ResourceRegistryClient {
logger.error("Error while getting {}schema for {}",
polymorphic ? AccessPath.POLYMORPHIC_PARAM + " " : "",
type, e);
throw new SchemaNotFoundException(e);
throw new RuntimeException(e);
}
}