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 through the SpringFactoriesLoader and must declare a public constructor with a single ConfigurableApplicationContext parameter.
Since:
2.0.0
Author:
Phillip Webb
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Report a startup failure to the user.
  • Method Details

    • 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.