Interface StackTraceWriter
-
- All Known Implementing Classes:
LegacyPojoStackTraceWriter
public interface StackTraceWriter
Ability to write a stack trace, filtered to omit locations inside Surefire and Maven.- Author:
- Brett Porter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SafeThrowable
getThrowable()
Retrieve the throwable for this writer.String
smartTrimmedStackTrace()
Get the "smart" trimmed (1-2 lines) stacktrace.String
writeTraceToString()
Write the throwable to a string, without trimming.String
writeTrimmedTraceToString()
Write the throwable to a string, trimming extra locations.
-
-
-
Method Detail
-
writeTraceToString
String writeTraceToString()
Write the throwable to a string, without trimming.- Returns:
- the trace
-
writeTrimmedTraceToString
String writeTrimmedTraceToString()
Write the throwable to a string, trimming extra locations.- Returns:
- the trace
-
smartTrimmedStackTrace
String smartTrimmedStackTrace()
Get the "smart" trimmed (1-2 lines) stacktrace.- Returns:
- the trace
-
getThrowable
SafeThrowable getThrowable()
Retrieve the throwable for this writer.- Returns:
- the throwable
-
-