org.apache.maven.plugin.surefire.booterclient.output
Class DeserializedStacktraceWriter

java.lang.Object
  extended by org.apache.maven.plugin.surefire.booterclient.output.DeserializedStacktraceWriter
All Implemented Interfaces:
StackTraceWriter

public class DeserializedStacktraceWriter
extends 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

Author:
Kristian Rosenvold

Constructor Summary
DeserializedStacktraceWriter(String message, String stackTrace)
           
 
Method Summary
 Throwable getThrowable()
          Retrieve the throwable for this writer.
 String writeTraceToString()
          Write the throwable to a string, without trimming.
 String writeTrimmedTraceToString()
          Write the throwable to a string, trimming extra locations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeserializedStacktraceWriter

public DeserializedStacktraceWriter(String message,
                                    String stackTrace)
Method Detail

writeTraceToString

public String writeTraceToString()
Description copied from interface: StackTraceWriter
Write the throwable to a string, without trimming.

Specified by:
writeTraceToString in interface StackTraceWriter
Returns:
the trace

writeTrimmedTraceToString

public String writeTrimmedTraceToString()
Description copied from interface: StackTraceWriter
Write the throwable to a string, trimming extra locations.

Specified by:
writeTrimmedTraceToString in interface StackTraceWriter
Returns:
the trace

getThrowable

public Throwable getThrowable()
Description copied from interface: StackTraceWriter
Retrieve the throwable for this writer.

Specified by:
getThrowable in interface StackTraceWriter
Returns:
the throwable


Copyright © 2004-2012 Apache Software Foundation. All Rights Reserved.