Class ApplicationFailedEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.boot.context.event.SpringApplicationEvent
org.springframework.boot.context.event.ApplicationFailedEvent
- All Implemented Interfaces:
- Serializable
Event published by a 
SpringApplication when it fails to start.- Since:
- 1.0.0
- Author:
- Dave Syer
- See Also:
- 
Field SummaryFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionApplicationFailedEvent(SpringApplication application, String[] args, ConfigurableApplicationContext context, Throwable exception) Create a newApplicationFailedEventinstance.
- 
Method SummaryModifier and TypeMethodDescriptionReturn the application context.Return the exception that caused the failure.Methods inherited from class org.springframework.boot.context.event.SpringApplicationEventgetArgs, getSpringApplicationMethods inherited from class org.springframework.context.ApplicationEventgetTimestampMethods inherited from class java.util.EventObjectgetSource, toString
- 
Constructor Details- 
ApplicationFailedEventpublic ApplicationFailedEvent(SpringApplication application, String[] args, ConfigurableApplicationContext context, Throwable exception) Create a newApplicationFailedEventinstance.- Parameters:
- application- the current application
- args- the arguments the application was running with
- context- the context that was being created (maybe null)
- exception- the exception that caused the error
 
 
- 
- 
Method Details- 
getApplicationContextReturn the application context.- Returns:
- the context
 
- 
getExceptionReturn the exception that caused the failure.- Returns:
- the exception
 
 
-