Class ConfigurationPropertiesBindException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.beans.BeansException
org.springframework.beans.FatalBeanException
org.springframework.beans.factory.BeanCreationException
org.springframework.boot.context.properties.ConfigurationPropertiesBindException
- All Implemented Interfaces:
Serializable
Exception thrown when
@ConfigurationProperties binding
fails.- Since:
- 2.0.0
- Author:
- Phillip Webb, Stephane Nicoll
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturn the configuration properties annotation that triggered the binding.Class<?>Return the bean type that was being bound.Methods inherited from class org.springframework.beans.factory.BeanCreationException
addRelatedCause, contains, getBeanName, getRelatedCauses, getResourceDescription, printStackTrace, printStackTrace, toStringMethods inherited from class org.springframework.core.NestedRuntimeException
getMostSpecificCause, getRootCauseMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace
-
Method Details
-
getBeanType
Return the bean type that was being bound.- Returns:
- the bean type
-
getAnnotation
Return the configuration properties annotation that triggered the binding.- Returns:
- the configuration properties annotation
-