public class PropertyReferenceException extends RuntimeException
PropertyPath
instances.Constructor and Description |
---|
PropertyReferenceException(String propertyName,
TypeInformation<?> type,
List<PropertyPath> alreadyResolvedPah)
Creates a new
PropertyReferenceException . |
Modifier and Type | Method and Description |
---|---|
PropertyPath |
getBaseProperty()
Returns the
PropertyPath which could be resolved so far. |
String |
getMessage() |
String |
getPropertyName()
Returns the name of the property not found.
|
TypeInformation<?> |
getType()
Returns the type the property could not be found on.
|
boolean |
hasDeeperResolutionDepthThan(PropertyReferenceException exception)
Returns whether the given
PropertyReferenceException has a deeper resolution depth (i.e. a longer path of
already resolved properties) than the current exception. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public PropertyReferenceException(String propertyName, TypeInformation<?> type, List<PropertyPath> alreadyResolvedPah)
PropertyReferenceException
.propertyName
- the name of the property not found on the given type, must not be null or empty.type
- the type the property could not be found on, must not be null.alreadyResolvedPah
- the previously calculated PropertyPath
s, must not be null.public String getPropertyName()
public TypeInformation<?> getType()
public String getMessage()
getMessage
in class Throwable
@Nullable public PropertyPath getBaseProperty()
PropertyPath
which could be resolved so far.public boolean hasDeeperResolutionDepthThan(PropertyReferenceException exception)
PropertyReferenceException
has a deeper resolution depth (i.e. a longer path of
already resolved properties) than the current exception.exception
- must not be null.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.