类 BindException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.boot.context.properties.bind.BindException
- 所有已实现的接口:
Serializable
,OriginProvider
public class BindException extends RuntimeException implements OriginProvider
Exception thrown when binding fails.- 从以下版本开始:
- 2.0.0
- 另请参阅:
- 序列化表格
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ConfigurationPropertyName
getName()
Return the name of the configuration property being bound.Origin
getOrigin()
Return the source origin ornull
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.
方法详细资料
getName
public ConfigurationPropertyName getName()
Return the name of the configuration property being bound.- 返回:
- the configuration property name
getProperty
public ConfigurationProperty getProperty()
Return the configuration property name of the item that was being bound.- 返回:
- the configuration property name
getOrigin
public Origin getOrigin()
从接口复制的说明:OriginProvider
Return the source origin ornull
if the origin is not known.- 指定者:
getOrigin
在接口中OriginProvider
- 返回:
- the origin or
null