Improved error message
This commit is contained in:
parent
eb0a6f213d
commit
951aa750e1
|
@ -125,12 +125,12 @@ public class FacetManagement extends EntityManagement<Facet, FacetType> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String create() throws AlreadyPresentException, ResourceRegistryException {
|
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 {
|
public OVertex internalCreate() throws AlreadyPresentException, ResourceRegistryException {
|
||||||
if(entryPoint && operation == Operation.CREATE) {
|
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();
|
return super.internalCreate();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue