org.springframework.boot.context.config

Class InvalidConfigDataPropertyException

  • All Implemented Interfaces:
    java.io.Serializable


    public class InvalidConfigDataPropertyException
    extends ConfigDataException
    Exception thrown if an invalid property is found when processing config data.
    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 invalid property or null if the source was not loaded from ConfigData.
      ConfigurationProperty getProperty()
      Return source property that caused the exception.
      ConfigurationPropertyName getReplacement()
      Return the replacement property that should be used instead or null 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
      • Methods inherited from class java.lang.Object

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

      • getProperty

        public ConfigurationProperty getProperty()
        Return source property that caused the exception.
        Returns:
        the invalid property
      • getReplacement

        public ConfigurationPropertyName getReplacement()
        Return the replacement property that should be used instead or null if not replacement is available.
        Returns:
        the replacement property name