org.springframework.boot.context.properties.source

Class InvalidConfigurationPropertyValueException

  • All Implemented Interfaces:
    Serializable


    public class InvalidConfigurationPropertyValueException
    extends RuntimeException
    Exception thrown when a configuration property value is invalid.
    Since:
    2.0.0
    Author:
    Stephane Nicoll
    See Also:
    Serialized Form
    • Constructor Detail

      • InvalidConfigurationPropertyValueException

        public InvalidConfigurationPropertyValueException(String name,
                                                          Object value,
                                                          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 dots. Several sentences and carriage returns are allowed.
    • Method Detail

      • getName

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

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

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

Copyright © 2019 Pivotal Software, Inc.. All rights reserved.