diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/instances/model/entities/FacetManagement.java b/src/main/java/org/gcube/informationsystem/resourceregistry/instances/model/entities/FacetManagement.java index 7b2667e..c740bfa 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/instances/model/entities/FacetManagement.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/instances/model/entities/FacetManagement.java @@ -125,12 +125,12 @@ public class FacetManagement extends EntityManagement { @Override public String create() throws AlreadyPresentException, ResourceRegistryException { - throw new ResourceRegistryException("You cannot create an horphan Facet"); + throw new SchemaViolationException("You cannot create a stand alone Facet"); } public OVertex internalCreate() throws AlreadyPresentException, ResourceRegistryException { if(entryPoint && operation == Operation.CREATE) { - throw new ResourceRegistryException("You cannot create an horphan Facet"); + throw new SchemaViolationException("You cannot create a stand alone Facet"); } return super.internalCreate(); }