类 ContextLoadException
java.lang.Object
java.lang.Throwable
java.lang.Exception
cn.taketoday.test.context.ContextLoadException
- 所有已实现的接口:
Serializable
Exception thrown when an error occurs while a
SmartContextLoader
attempts to load an ApplicationContext.
This exception provides access to the application context that failed to load as well as the exception caught while attempting to load that context.
- 从以下版本开始:
- 4.0 2023/6/15 21:12
- 作者:
- Sam Brannen, Harry Yang
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明private final cn.taketoday.context.ApplicationContextprivate static final long -
构造器概要
构造器构造器说明ContextLoadException(cn.taketoday.context.ApplicationContext applicationContext, Throwable cause) -
方法概要
修饰符和类型方法说明cn.taketoday.context.ApplicationContextGet theApplicationContextthat failed to load.
-
字段详细资料
-
serialVersionUID
private static final long serialVersionUID- 另请参阅:
-
applicationContext
private final cn.taketoday.context.ApplicationContext applicationContext
-
-
构造器详细资料
-
ContextLoadException
public ContextLoadException(cn.taketoday.context.ApplicationContext applicationContext, Throwable cause) - 参数:
applicationContext- the application context that failed to loadcause- the exception caught while attempting to load that context
-
-
方法详细资料
-
getApplicationContext
public cn.taketoday.context.ApplicationContext getApplicationContext()Get theApplicationContextthat failed to load.Clients must not retain a long-lived reference to the context returned from this method.
-