Package org.springframework.test.context
Class ContextLoadException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.springframework.test.context.ContextLoadException
- All Implemented Interfaces:
- 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.
- Since:
- 6.0
- Author:
- Sam Brannen
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionContextLoadException(ApplicationContext applicationContext, Throwable cause) 
- 
Method SummaryModifier and TypeMethodDescriptionGet theApplicationContextthat failed to load.Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
ContextLoadException- Parameters:
- applicationContext- the application context that failed to load
- cause- the exception caught while attempting to load that context
 
 
- 
- 
Method Details- 
getApplicationContextGet theApplicationContextthat failed to load.Clients must not retain a long-lived reference to the context returned from this method. 
 
-