org.apache.maven.surefire.report
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
 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


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.