Class AotBeanProcessingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.beans.factory.aot.AotException
org.springframework.beans.factory.aot.AotProcessingException
org.springframework.beans.factory.aot.AotBeanProcessingException
- All Implemented Interfaces:
- Serializable
Thrown when AOT fails to process a bean.
- Since:
- 6.2
- Author:
- Stephane Nicoll
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionAotBeanProcessingException(RegisteredBean registeredBean, String msg) Shortcut to create an instance with theRegisteredBeanthat fails to be processed with only a detail message.AotBeanProcessingException(RegisteredBean registeredBean, String msg, Throwable cause) Create an instance with theRegisteredBeanthat fails to be processed, a detail message, and an optional root cause.
- 
Method SummaryModifier and TypeMethodDescriptionReturn the bean definition of the bean that failed to be processed.Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
AotBeanProcessingExceptionpublic AotBeanProcessingException(RegisteredBean registeredBean, String msg, @Nullable Throwable cause) Create an instance with theRegisteredBeanthat fails to be processed, a detail message, and an optional root cause.- Parameters:
- registeredBean- the registered bean that fails to be processed
- msg- the detail message
- cause- the root cause, if any
 
- 
AotBeanProcessingExceptionShortcut to create an instance with theRegisteredBeanthat fails to be processed with only a detail message.- Parameters:
- registeredBean- the registered bean that fails to be processed
- msg- the detail message
 
 
- 
- 
Method Details- 
getBeanDefinitionReturn the bean definition of the bean that failed to be processed.
 
-