org.springframework.boot.context.properties.source

Class InvalidConfigurationPropertyValueException

  • java.lang.Object
    • java.lang.Throwable
      • java.lang.Exception
        • java.lang.RuntimeException
          • org.springframework.boot.context.properties.source.InvalidConfigurationPropertyValueException
  • All Implemented Interfaces:
    java.io.Serializable


    public class InvalidConfigurationPropertyValueException
    extends java.lang.RuntimeException
    Exception thrown when a configuration property value is invalid.
    Since:
    2.0.0
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      InvalidConfigurationPropertyValueException(java.lang.String name, java.lang.Object value, java.lang.String reason)
      Creates a new instance for the specified property name and value, including a reason why the value is invalid.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getName()
      Return the name of the property.
      java.lang.String getReason()
      Return the reason why the value is invalid.
      java.lang.Object getValue()
      Return the invalid value, can be null.
      • 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
    • Constructor Detail

      • InvalidConfigurationPropertyValueException

        public InvalidConfigurationPropertyValueException(java.lang.String name,
                                                          java.lang.Object value,
                                                          java.lang.String reason)
        Creates a new instance for the specified property name and value, including a reason why the value is invalid.
        Parameters:
        name - the name of the property in canonical format
        value - the value of the property, can be null
        reason - a human-readable text that describes why the reason is invalid. Starts with an upper-case and ends with a dot. Several sentences and carriage returns are allowed.
    • Method Detail

      • getName

        public java.lang.String getName()
        Return the name of the property.
        Returns:
        the property name
      • getValue

        public java.lang.Object getValue()
        Return the invalid value, can be null.
        Returns:
        the invalid value
      • getReason

        public java.lang.String getReason()
        Return the reason why the value is invalid.
        Returns:
        the reason