Using the proper exception
This commit is contained in:
parent
5db160a2dc
commit
3a6f3cc59b
|
@ -250,7 +250,7 @@ public abstract class EntityManagement<E extends Entity, ET extends EntityType>
|
||||||
String error = String.format(
|
String error = String.format(
|
||||||
"Trying to create an instance of %s of type %s which is abstract. The operation will be aborted.",
|
"Trying to create an instance of %s of type %s which is abstract. The operation will be aborted.",
|
||||||
accessType.getName(), typeName);
|
accessType.getName(), typeName);
|
||||||
throw new ResourceRegistryException(error);
|
throw new SchemaViolationException(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
OVertex vertexEntity = oDatabaseDocument.newVertex(typeName);
|
OVertex vertexEntity = oDatabaseDocument.newVertex(typeName);
|
||||||
|
|
Loading…
Reference in New Issue