Package org.apache.maven.surefire.report
Interface StackTraceWriter
-
- All Known Implementing Classes:
DeserializedStacktraceWriter
,JUnit4StackTraceWriter
,LegacyPojoStackTraceWriter
,PojoStackTraceWriter
public interface StackTraceWriter
Ability to write a stack trace, filtered to omit locations inside Surefire and Maven.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SafeThrowable
getThrowable()
Retrieve the throwable for this writer.java.lang.String
smartTrimmedStackTrace()
Get the "smart" trimmed (1-2 lines) stacktrace.java.lang.String
writeTraceToString()
Write the throwable to a string, without trimming.java.lang.String
writeTrimmedTraceToString()
Write the throwable to a string, trimming extra locations.
-
-
-
Method Detail
-
writeTraceToString
java.lang.String writeTraceToString()
Write the throwable to a string, without trimming.- Returns:
- the trace
-
writeTrimmedTraceToString
java.lang.String writeTrimmedTraceToString()
Write the throwable to a string, trimming extra locations.- Returns:
- the trace
-
smartTrimmedStackTrace
java.lang.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
-
-