接口 SpringBootExceptionReporter
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
@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.- 从以下版本开始:
- 2.0.0
- 另请参阅:
ApplicationContextAware
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 boolean
reportException(Throwable failure)
Report a startup failure to the user.
方法详细资料
reportException
boolean reportException(Throwable failure)
Report a startup failure to the user.- 参数:
failure
- the source failure- 返回:
true
if the failure was reported orfalse
if default reporting should occur.