public class PropertyNotUniqueException extends GraphOperationException
Unique Concept Property Violation
This occurs when attempting to add a globally unique property to a concept.
For example when creating a EntityType and RelationType using
the same Label
| Modifier and Type | Method and Description |
|---|---|
static PropertyNotUniqueException |
cannotChangeProperty(org.apache.tinkerpop.gremlin.structure.Vertex mutatingConcept,
org.apache.tinkerpop.gremlin.structure.Vertex conceptWithValue,
Schema.VertexProperty property,
Object value)
Thrown when trying to set the property of concept
mutatingConcept to a value which is already
taken by concept conceptWithValue |
static PropertyNotUniqueException |
cannotCreateProperty(Concept conceptWithValue,
Schema.VertexProperty property,
Object value)
Thrown when trying to create a concept using a unique property which is already taken.
|
addingInstancesToAbstractType, closingGraphFailed, duplicateHas, hasNotAllowed, immutableProperty, invalidCasting, invalidDirection, invalidGraphConfig, invalidPlays, invalidResourceValue, loopCreated, metaTypeImmutable, noType, nullKeyspace, ontologyMutation, regexFailure, reservedLabel, settingNullProperty, transactionClosed, transactionInvalid, transactionOpen, transactionReadOnly, typeCannotBeDeleted, unsupportedDataType, versionMistmatchaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic static PropertyNotUniqueException cannotChangeProperty(org.apache.tinkerpop.gremlin.structure.Vertex mutatingConcept, org.apache.tinkerpop.gremlin.structure.Vertex conceptWithValue, Schema.VertexProperty property, Object value)
mutatingConcept to a value which is already
taken by concept conceptWithValuepublic static PropertyNotUniqueException cannotCreateProperty(Concept conceptWithValue, Schema.VertexProperty property, Object value)
LabelCopyright © 2017 Grakn Labs Ltd. All rights reserved.