public class SpringApplicationErrorEvent
extends org.springframework.context.ApplicationEvent
SpringApplication
when it fails to start.source
Constructor and Description |
---|
SpringApplicationErrorEvent(SpringApplication springApplication,
org.springframework.context.ConfigurableApplicationContext context,
String[] args,
Throwable exception) |
Modifier and Type | Method and Description |
---|---|
org.springframework.context.ConfigurableApplicationContext |
getApplicationContext() |
String[] |
getArgs() |
Throwable |
getException() |
SpringApplication |
getSpringApplication() |
getSource, toString
public SpringApplicationErrorEvent(SpringApplication springApplication, org.springframework.context.ConfigurableApplicationContext context, String[] args, Throwable exception)
springApplication
- the current applicationcontext
- the context that was being created (maybe null)args
- the arguments the application was running withexception
- the exception that caused the errorpublic org.springframework.context.ConfigurableApplicationContext getApplicationContext()
public SpringApplication getSpringApplication()
public Throwable getException()
public String[] getArgs()
Copyright © 2014. All rights reserved.