类 InvalidConfigurationPropertyValueException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.boot.context.properties.source.InvalidConfigurationPropertyValueException
所有已实现的接口:
Serializable

public class InvalidConfigurationPropertyValueException extends RuntimeException
Exception thrown when a configuration property value is invalid.
从以下版本开始:
2.0.0
作者:
Stephane Nicoll
另请参阅:
  • 构造器详细资料

    • 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.
      参数:
      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.
  • 方法详细资料

    • getName

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

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

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