Package org.springframework.boot
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 ofSpringApplication
startup errors.reporters
are loaded via theSpringFactoriesLoader
and must declare a public constructor with a singleConfigurableApplicationContext
parameter.- Since:
- 2.0.0
- See Also:
ApplicationContextAware
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
reportException(Throwable failure)
Report a startup failure to the user.
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 orfalse
if default reporting should occur.