类 SpringApplication.AbandonedRunException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.boot.SpringApplication.AbandonedRunException
- 所有已实现的接口:
Serializable
- 封闭类:
SpringApplication
Exception that can be thrown to silently exit a running
SpringApplication
without handling run failures.- 从以下版本开始:
- 3.0.0
- 另请参阅:
-
构造器概要
构造器构造器说明Create a newSpringApplication.AbandonedRunException
instance.AbandonedRunException
(ConfigurableApplicationContext applicationContext) Create a newSpringApplication.AbandonedRunException
instance with the given application context. -
方法概要
修饰符和类型方法说明Return the application context that was available when the run was abandoned ornull
if no context was available.
-
构造器详细资料
-
AbandonedRunException
public AbandonedRunException()Create a newSpringApplication.AbandonedRunException
instance. -
AbandonedRunException
Create a newSpringApplication.AbandonedRunException
instance with the given application context.- 参数:
applicationContext
- the application context that was available when the run was abandoned
-
-
方法详细资料
-
getApplicationContext
Return the application context that was available when the run was abandoned ornull
if no context was available.- 返回:
- the application context
-