类 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
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 InvalidConfigurationPropertyValueException(String name, Object value, String reason)
Creates a new instance for the specified propertyname
andvalue
, including areason
why the value is invalid.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 String
getName()
Return the name of the property.String
getReason()
Return the reason why the value is invalid.Object
getValue()
Return the invalid value, can benull
.
构造器详细资料
InvalidConfigurationPropertyValueException
public InvalidConfigurationPropertyValueException(String name, Object value, String reason)
Creates a new instance for the specified propertyname
andvalue
, including areason
why the value is invalid.- 参数:
name
- the name of the property in canonical formatvalue
- the value of the property, can benull
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.