类 ContextLoadException

java.lang.Object
java.lang.Throwable
java.lang.Exception
cn.taketoday.test.context.ContextLoadException
所有已实现的接口:
Serializable

public class ContextLoadException extends Exception
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
另请参阅:
  • 字段详细资料

    • serialVersionUID

      private static final long serialVersionUID
      另请参阅:
    • applicationContext

      private final cn.taketoday.context.ApplicationContext applicationContext
  • 构造器详细资料

    • ContextLoadException

      public ContextLoadException(cn.taketoday.context.ApplicationContext applicationContext, Throwable cause)
      Create a new ContextLoadException for the supplied ApplicationContext and Throwable.
      参数:
      applicationContext - the application context that failed to load
      cause - the exception caught while attempting to load that context
  • 方法详细资料

    • getApplicationContext

      public cn.taketoday.context.ApplicationContext getApplicationContext()
      Get the ApplicationContext that failed to load.

      Clients must not retain a long-lived reference to the context returned from this method.