Class InactiveConfigDataAccessException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.boot.context.config.ConfigDataException
org.springframework.boot.context.config.InactiveConfigDataAccessException
- All Implemented Interfaces:
Serializable
Exception thrown when an attempt is made to resolve a property against an inactive
ConfigData
property source. Used to ensure that a user doesn't accidentally
attempt to specify a properties that can never be resolved.- Since:
- 2.4.0
- Author:
- Phillip Webb, Madhura Bhave
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturn theConfigDataResource
of the property source ornull
if the source was not loaded fromConfigData
.Return the origin or the property ornull
.Return the name of the property.Return the inactive property source that contained the property.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
getPropertySource
Return the inactive property source that contained the property.- Returns:
- the property source
-
getLocation
Return theConfigDataResource
of the property source ornull
if the source was not loaded fromConfigData
.- Returns:
- the config data location or
null
-
getPropertyName
Return the name of the property.- Returns:
- the property name
-
getOrigin
Return the origin or the property ornull
.- Returns:
- the property origin
-