org.springframework.boot.context.event

Class ApplicationFailedEvent

    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      org.springframework.context.ConfigurableApplicationContext getApplicationContext()
      Return the application context.
      java.lang.Throwable getException()
      Return the exception that caused the failure.
      • Methods inherited from class org.springframework.context.ApplicationEvent

        getTimestamp
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ApplicationFailedEvent

        public ApplicationFailedEvent(SpringApplication application,
                                      java.lang.String[] args,
                                      org.springframework.context.ConfigurableApplicationContext context,
                                      java.lang.Throwable exception)
        Create a new ApplicationFailedEvent instance.
        Parameters:
        application - the current application
        args - the arguments the application was running with
        context - the context that was being created (maybe null)
        exception - the exception that caused the error
    • Method Detail

      • getApplicationContext

        public org.springframework.context.ConfigurableApplicationContext getApplicationContext()
        Return the application context.
        Returns:
        the context
      • getException

        public java.lang.Throwable getException()
        Return the exception that caused the failure.
        Returns:
        the exception