Interface SpringBootExceptionReporter

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface SpringBootExceptionReporter
    Callback interface used to support custom reporting of SpringApplication startup errors. reporters are loaded via the SpringFactoriesLoader and must declare a public constructor with a single ConfigurableApplicationContext parameter.
    Since:
    2.0.0
    See Also:
    ApplicationContextAware
    • Method Detail

      • reportException

        boolean reportException​(Throwable failure)
        Report a startup failure to the user.
        Parameters:
        failure - the source failure
        Returns:
        true if the failure was reported or false if default reporting should occur.