Class BindException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.boot.context.properties.bind.BindException
- All Implemented Interfaces:
Serializable
,OriginProvider
Exception thrown when binding fails.
- Since:
- 2.0.0
- See Also:
-
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
getName
Return the name of the configuration property being bound.- Returns:
- the configuration property name
-
getTarget
Return the target being bound.- Returns:
- the bind target
-
getProperty
Return the configuration property name of the item that was being bound.- Returns:
- the configuration property name
-
getOrigin
Description copied from interface:OriginProvider
Return the source origin ornull
if the origin is not known.- Specified by:
getOrigin
in interfaceOriginProvider
- Returns:
- the origin or
null
-