Class InvalidPersistentPropertyPath
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.data.mapping.MappingException
org.springframework.data.mapping.context.InvalidPersistentPropertyPath
- All Implemented Interfaces:
Serializable
Exception to indicate a source path couldn't be resolved into a
PersistentPropertyPath
completely.- Author:
- Oliver Gierke
- See Also:
-
Constructor Summary
ConstructorDescriptionInvalidPersistentPropertyPath
(String source, TypeInformation<?> type, String unresolvableSegment, PersistentPropertyPath<? extends PersistentProperty<?>> resolvedPath) Creates a newInvalidPersistentPropertyPath
for the given resolved path and message. -
Method Summary
Modifier and TypeMethodDescriptionReturns the part of the source path until which the source property path could be resolved.Returns the source property path.getType()
Returns the type the source property path was attempted to be resolved on.Returns the segment of the source property path that could not be resolved.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidPersistentPropertyPath
public InvalidPersistentPropertyPath(String source, TypeInformation<?> type, String unresolvableSegment, PersistentPropertyPath<? extends PersistentProperty<?>> resolvedPath) Creates a newInvalidPersistentPropertyPath
for the given resolved path and message.- Parameters:
source
- must not be null.unresolvableSegment
- must not be null or empty.resolvedPath
- must not be null or empty.
-
-
Method Details
-
getSource
Returns the source property path.- Returns:
- the source will never be null.
-
getType
Returns the type the source property path was attempted to be resolved on.- Returns:
- the type will never be null.
-
getUnresolvableSegment
Returns the segment of the source property path that could not be resolved.- Returns:
- the unresolvableSegment
-
getResolvedPath
Returns the part of the source path until which the source property path could be resolved.- Returns:
- the resolvedPath
-