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.
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
- Author:
- Phillip Webb
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
reportException
(Throwable failure) Report a startup failure to the user.
-
Method Details
-
reportException
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.
-