Spring Data Core

org.springframework.data.mapping
Class PropertyReferenceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.data.mapping.PropertyReferenceException
All Implemented Interfaces:
Serializable

public class PropertyReferenceException
extends RuntimeException

Exception being thrown when creating PropertyPath instances.

Author:
Oliver Gierke
See Also:
Serialized Form

Constructor Summary
PropertyReferenceException(String propertyName, TypeInformation<?> type, PropertyPath base)
          Creates a new PropertyReferenceException.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyReferenceException

public PropertyReferenceException(String propertyName,
                                  TypeInformation<?> type,
                                  PropertyPath base)
Creates a new PropertyReferenceException.

Parameters:
propertyName - the name of the property not found on the given type.
type - the type the property could not be found on.
base - the base PropertyPath.
Method Detail

getPropertyName

public String getPropertyName()
Returns the name of the property not found.

Returns:
will not be null or empty.

getType

public TypeInformation<?> getType()
Returns the type the property could not be found on.

Returns:
the type

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

getBaseProperty

public PropertyPath getBaseProperty()
Returns the PropertyPath which could be resolved so far.

Returns:

Spring Data Core

Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.