public class ApplicationFailedEvent extends SpringApplicationEvent
SpringApplication
when it fails to start.ApplicationReadyEvent
,
Serialized Formsource
Constructor and Description |
---|
ApplicationFailedEvent(SpringApplication application,
String[] args,
org.springframework.context.ConfigurableApplicationContext context,
Throwable exception)
Create a new
ApplicationFailedEvent instance. |
Modifier and Type | Method and Description |
---|---|
org.springframework.context.ConfigurableApplicationContext |
getApplicationContext()
Return the application context.
|
Throwable |
getException()
Return the exception that caused the failure.
|
getArgs, getSpringApplication
getSource, toString
public ApplicationFailedEvent(SpringApplication application, String[] args, org.springframework.context.ConfigurableApplicationContext context, 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 Throwable getException()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.