org.springframework.boot.context.event

Class ApplicationFailedEvent

    • Constructor Detail

      • ApplicationFailedEvent

        public ApplicationFailedEvent(SpringApplication application,
                                      String[] args,
                                      ConfigurableApplicationContext context,
                                      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

      • getException

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