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 Summary
ConstructorDescriptionAotBeanProcessingException
(RegisteredBean registeredBean, String msg) Shortcut to create an instance with theRegisteredBean
that fails to be processed with only a detail message.AotBeanProcessingException
(RegisteredBean registeredBean, String msg, Throwable cause) Create an instance with theRegisteredBean
that fails to be processed, a detail message, and an optional root cause. -
Method Summary
Modifier and TypeMethodDescriptionReturn the bean definition of the bean that failed to be processed.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AotBeanProcessingException
public AotBeanProcessingException(RegisteredBean registeredBean, String msg, @Nullable Throwable cause) Create an instance with theRegisteredBean
that fails to be processed, a detail message, and an optional root cause.- Parameters:
registeredBean
- the registered bean that fails to be processedmsg
- the detail messagecause
- the root cause, if any
-
AotBeanProcessingException
Shortcut to create an instance with theRegisteredBean
that fails to be processed with only a detail message.- Parameters:
registeredBean
- the registered bean that fails to be processedmsg
- the detail message
-
-
Method Details
-
getBeanDefinition
Return the bean definition of the bean that failed to be processed.
-