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) |
Modifier and Type | Method and Description |
---|---|
ConfigurableApplicationContext |
getApplicationContext() |
Throwable |
getException() |
getArgs, getSpringApplication
getTimestamp
getSource, toString
public ApplicationFailedEvent(SpringApplication application, String[] args, ConfigurableApplicationContext context, Throwable exception)
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.