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

public static class SpringApplication.AbandonedRunException extends RuntimeException
Exception that can be thrown to silently exit a running SpringApplication without handling run failures.
Since:
3.0.0
See Also:
  • Constructor Details

  • Method Details

    • getApplicationContext

      public ConfigurableApplicationContext getApplicationContext()
      Return the application context that was available when the run was abandoned or null if no context was available.
      Returns:
      the application context