public class ApplicationFailedEvent extends SpringApplicationEvent
SpringApplication
when it fails to start.ApplicationReadyEvent
,
Serialized FormConstructor and Description |
---|
ApplicationFailedEvent(SpringApplication application,
java.lang.String[] args,
org.springframework.context.ConfigurableApplicationContext context,
java.lang.Throwable exception)
Create a new
ApplicationFailedEvent instance. |
Modifier and Type | Method and Description |
---|---|
org.springframework.context.ConfigurableApplicationContext |
getApplicationContext()
Return the application context.
|
java.lang.Throwable |
getException()
Return the exception that caused the failure.
|
getArgs, getSpringApplication
public ApplicationFailedEvent(SpringApplication application, java.lang.String[] args, org.springframework.context.ConfigurableApplicationContext context, java.lang.Throwable exception)
ApplicationFailedEvent
instance.application
- the current applicationargs
- the arguments the application was running withcontext
- the context that was being created (maybe null)exception
- the exception that caused the errorpublic org.springframework.context.ConfigurableApplicationContext getApplicationContext()
public java.lang.Throwable getException()