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