org.springframework.boot.context.config

Class InactiveConfigDataAccessException

  • All Implemented Interfaces:
    java.io.Serializable


    public class InactiveConfigDataAccessException
    extends ConfigDataException
    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
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      ConfigDataResource getLocation()
      Return the ConfigDataResource of the property source or null if the source was not loaded from ConfigData.
      Origin getOrigin()
      Return the origin or the property or null.
      java.lang.String getPropertyName()
      Return the name of the property.
      org.springframework.core.env.PropertySource<?> getPropertySource()
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getPropertySource

        public org.springframework.core.env.PropertySource<?> getPropertySource()
        Return the inactive property source that contained the property.
        Returns:
        the property source
      • getPropertyName

        public java.lang.String getPropertyName()
        Return the name of the property.
        Returns:
        the property name
      • getOrigin

        public Origin getOrigin()
        Return the origin or the property or null.
        Returns:
        the property origin