Class DeserializedStacktraceWriter
- java.lang.Object
-
- org.apache.maven.plugin.surefire.booterclient.output.DeserializedStacktraceWriter
-
- All Implemented Interfaces:
StackTraceWriter
public class DeserializedStacktraceWriter extends java.lang.Object implements StackTraceWriter
Represents a deserialize stacktracewriter that has been marshalled across to the plugin from the fork.
Might be better to represent this whole thing differently
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
message
private java.lang.String
smartTrimmed
private java.lang.String
stackTrace
-
Constructor Summary
Constructors Constructor Description DeserializedStacktraceWriter(java.lang.String message, java.lang.String smartTrimmed, java.lang.String stackTrace)
-
Method Summary
All Methods Instance Methods Concrete 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
-
smartTrimmedStackTrace
public java.lang.String smartTrimmedStackTrace()
Description copied from interface:StackTraceWriter
Get the "smart" trimmed (1-2 lines) stacktrace.- Specified by:
smartTrimmedStackTrace
in interfaceStackTraceWriter
- Returns:
- the trace
-
writeTraceToString
public java.lang.String writeTraceToString()
Description copied from interface:StackTraceWriter
Write the throwable to a string, without trimming.- Specified by:
writeTraceToString
in interfaceStackTraceWriter
- Returns:
- the trace
-
writeTrimmedTraceToString
public java.lang.String writeTrimmedTraceToString()
Description copied from interface:StackTraceWriter
Write the throwable to a string, trimming extra locations.- Specified by:
writeTrimmedTraceToString
in interfaceStackTraceWriter
- Returns:
- the trace
-
getThrowable
public SafeThrowable getThrowable()
Description copied from interface:StackTraceWriter
Retrieve the throwable for this writer.- Specified by:
getThrowable
in interfaceStackTraceWriter
- Returns:
- the throwable
-
-