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 Summary
ConstructorsConstructorDescriptionContextLoadException(ApplicationContext applicationContext, Throwable cause)  - 
Method Summary
Modifier and TypeMethodDescriptionGet theApplicationContextthat failed to load.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString 
- 
Constructor Details
- 
ContextLoadException
- Parameters:
 applicationContext- the application context that failed to loadcause- the exception caught while attempting to load that context
 
 - 
 - 
Method Details
- 
getApplicationContext
Get theApplicationContextthat failed to load.Clients must not retain a long-lived reference to the context returned from this method.
 
 -