Package org.springframework.boot
Class SpringApplication.AbandonedRunException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.boot.SpringApplication.AbandonedRunException
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- SpringApplication
Exception that can be thrown to silently exit a running 
SpringApplication
 without handling run failures.- Since:
- 3.0.0
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionCreate a newSpringApplication.AbandonedRunExceptioninstance.AbandonedRunException(ConfigurableApplicationContext applicationContext) Create a newSpringApplication.AbandonedRunExceptioninstance with the given application context.
- 
Method SummaryModifier and TypeMethodDescriptionReturn the application context that was available when the run was abandoned ornullif no context was available.Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
AbandonedRunExceptionpublic AbandonedRunException()Create a newSpringApplication.AbandonedRunExceptioninstance.
- 
AbandonedRunExceptionCreate a newSpringApplication.AbandonedRunExceptioninstance with the given application context.- Parameters:
- applicationContext- the application context that was available when the run was abandoned
 
 
- 
- 
Method Details- 
getApplicationContextReturn the application context that was available when the run was abandoned ornullif no context was available.- Returns:
- the application context
 
 
-