Class InvalidConfigDataPropertyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.boot.context.config.ConfigDataException
org.springframework.boot.context.config.InvalidConfigDataPropertyException
- All Implemented Interfaces:
- Serializable
Exception thrown if an invalid property is found when processing config data.
- Since:
- 2.4.0
- Author:
- Phillip Webb, Madhura Bhave
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionReturn theConfigDataResourceof the invalid property ornullif the source was not loaded fromConfigData.Return source property that caused the exception.Return the replacement property that should be used instead ornullif not replacement is available.Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Method Details- 
getPropertyReturn source property that caused the exception.- Returns:
- the invalid property
 
- 
getLocationReturn theConfigDataResourceof the invalid property ornullif the source was not loaded fromConfigData.- Returns:
- the config data location or null
 
- 
getReplacementReturn the replacement property that should be used instead ornullif not replacement is available.- Returns:
- the replacement property name
 
 
-