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 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