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 Summary
Modifier and TypeMethodDescriptionReturn theConfigDataResource
of the invalid property ornull
if the source was not loaded fromConfigData
.Return source property that caused the exception.Return the replacement property that should be used instead ornull
if not replacement is available.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
getProperty
Return source property that caused the exception.- Returns:
- the invalid property
-
getLocation
Return theConfigDataResource
of the invalid property ornull
if the source was not loaded fromConfigData
.- Returns:
- the config data location or
null
-
getReplacement
Return the replacement property that should be used instead ornull
if not replacement is available.- Returns:
- the replacement property name
-