Class NoRootNodeMappingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.data.mapping.MappingException
org.springframework.data.neo4j.core.mapping.NoRootNodeMappingException
- All Implemented Interfaces:
Serializable
,Formattable
@API(status=INTERNAL,
since="6.0.2")
public final class NoRootNodeMappingException
extends MappingException
implements Formattable
A
NoRootNodeMappingException
is thrown when the entity converter cannot find a node or map like structure
that can be mapped.
Nodes eligible for mapping are actual nodes with at least the primary label attached or exactly one map structure
that is neither a node nor relationship itself.- Since:
- 6.0.2
- Author:
- Michael J. Simons
- See Also:
-
Constructor Summary
ConstructorDescriptionNoRootNodeMappingException
(org.neo4j.driver.types.MapAccessor mapAccessor, Neo4jPersistentEntity<?> entity) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoRootNodeMappingException
public NoRootNodeMappingException(org.neo4j.driver.types.MapAccessor mapAccessor, Neo4jPersistentEntity<?> entity)
-
-
Method Details
-
formatTo
- Specified by:
formatTo
in interfaceFormattable
-