接口 StackTracePrinter
- 所有已知实现类:
StandardStackTracePrinter
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
Interface that can be used to print the stack trace of a
Throwable
.- 从以下版本开始:
- 3.5.0
- 作者:
- Phillip Webb
- 另请参阅:
-
方法概要
修饰符和类型方法说明void
printStackTrace
(Throwable throwable, Appendable out) Prints a stack trace for the givenThrowable
.default String
printStackTraceToString
(Throwable throwable)
-
方法详细资料
-
printStackTraceToString
- 参数:
throwable
- the throwable that should have its stack trace printed- 返回:
- the stack trace string
-
printStackTrace
Prints a stack trace for the givenThrowable
.- 参数:
throwable
- the throwable that should have its stack trace printedout
- the destination to write output- 抛出:
IOException
- on IO error
-