Fixed log
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@146912 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
b360dbd9ae
commit
227eee7ebd
|
@ -302,11 +302,11 @@ public abstract class RelationManagement<R extends Relation> extends
|
||||||
if (propagationConstraint.getAddConstraint() != null) {
|
if (propagationConstraint.getAddConstraint() != null) {
|
||||||
addConstraint = propagationConstraint.getAddConstraint();
|
addConstraint = propagationConstraint.getAddConstraint();
|
||||||
}else {
|
}else {
|
||||||
String error = String.format("%s in %s is null"
|
String error = String.format("%s.%s in %s is null"
|
||||||
+ "This is really strange and should not occur. "
|
+ "This is really strange and should not occur. "
|
||||||
+ "Please Investigate it.",
|
+ "Please Investigate it.",
|
||||||
Relation.ADD_CONSTRAINT,
|
|
||||||
Relation.PROPAGATION_CONSTRAINT,
|
Relation.PROPAGATION_CONSTRAINT,
|
||||||
|
PropagationConstraint.ADD_PROPERTY,
|
||||||
Utility.toJsonString(element, true));
|
Utility.toJsonString(element, true));
|
||||||
logger.error(error);
|
logger.error(error);
|
||||||
throw new ResourceRegistryException(error);
|
throw new ResourceRegistryException(error);
|
||||||
|
@ -395,11 +395,11 @@ public abstract class RelationManagement<R extends Relation> extends
|
||||||
if (propagationConstraint.getRemoveConstraint() != null) {
|
if (propagationConstraint.getRemoveConstraint() != null) {
|
||||||
removeConstraint = propagationConstraint.getRemoveConstraint();
|
removeConstraint = propagationConstraint.getRemoveConstraint();
|
||||||
}else{
|
}else{
|
||||||
String error = String.format("%s in %s is null"
|
String error = String.format("%s.%s in %s is null"
|
||||||
+ "This is really strange and should not occur. "
|
+ "This is really strange and should not occur. "
|
||||||
+ "Please Investigate it.",
|
+ "Please Investigate it.",
|
||||||
Relation.REMOVE_CONSTRAINT,
|
|
||||||
Relation.PROPAGATION_CONSTRAINT,
|
Relation.PROPAGATION_CONSTRAINT,
|
||||||
|
PropagationConstraint.REMOVE_PROPERTY,
|
||||||
Utility.toJsonString(element, true));
|
Utility.toJsonString(element, true));
|
||||||
logger.error(error);
|
logger.error(error);
|
||||||
throw new ResourceRegistryException(error);
|
throw new ResourceRegistryException(error);
|
||||||
|
@ -550,11 +550,11 @@ public abstract class RelationManagement<R extends Relation> extends
|
||||||
if (propagationConstraint.getRemoveConstraint() != null) {
|
if (propagationConstraint.getRemoveConstraint() != null) {
|
||||||
removeConstraint = propagationConstraint.getRemoveConstraint();
|
removeConstraint = propagationConstraint.getRemoveConstraint();
|
||||||
}else{
|
}else{
|
||||||
String error = String.format("%s in %s is null"
|
String error = String.format("%s.%s in %s is null"
|
||||||
+ "This is really strange and should not occur. "
|
+ "This is really strange and should not occur. "
|
||||||
+ "Please Investigate it.",
|
+ "Please Investigate it.",
|
||||||
Relation.REMOVE_CONSTRAINT,
|
|
||||||
Relation.PROPAGATION_CONSTRAINT,
|
Relation.PROPAGATION_CONSTRAINT,
|
||||||
|
PropagationConstraint.REMOVE_PROPERTY,
|
||||||
Utility.toJsonString(element, true));
|
Utility.toJsonString(element, true));
|
||||||
logger.error(error);
|
logger.error(error);
|
||||||
throw new ResourceRegistryException(error);
|
throw new ResourceRegistryException(error);
|
||||||
|
|
Loading…
Reference in New Issue