org.springframework.boot.context.properties.bind

Class BindException

  • java.lang.Object
    • java.lang.Throwable
      • java.lang.Exception
        • java.lang.RuntimeException
          • org.springframework.boot.context.properties.bind.BindException
  • All Implemented Interfaces:
    java.io.Serializable, OriginProvider


    public class BindException
    extends java.lang.RuntimeException
    implements OriginProvider
    Exception thrown when binding fails.
    Since:
    2.0.0
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      ConfigurationPropertyName getName()
      Return the name of the configuration property being bound.
      Origin getOrigin()
      Return the source origin or null if the origin is not known.
      ConfigurationProperty getProperty()
      Return the configuration property name of the item that was being bound.
      Bindable<?> getTarget()
      Return the target being bound.
      • 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

      • getName

        public ConfigurationPropertyName getName()
        Return the name of the configuration property being bound.
        Returns:
        the configuration property name
      • getTarget

        public Bindable<?> getTarget()
        Return the target being bound.
        Returns:
        the bind target
      • getProperty

        public ConfigurationProperty getProperty()
        Return the configuration property name of the item that was being bound.
        Returns:
        the configuration property name
      • getOrigin

        public Origin getOrigin()
        Description copied from interface: OriginProvider
        Return the source origin or null if the origin is not known.
        Specified by:
        getOrigin in interface OriginProvider
        Returns:
        the origin or null