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:
parent
27fd7c3fef
commit
23104b8a78
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue