net.sf.sasl.common.helper
Class StackTraceHelper

java.lang.Object
  extended by net.sf.sasl.common.helper.StackTraceHelper

public class StackTraceHelper
extends Object

The class defines some methods for the stack trace.
Because of the impossibility to mock static method calls without changing the byte code or do some jar-hell tricks, non of the method is defined static.

Since:
0.0.1 (sasl-common-aspect-library)
Author:
Philipp Förmer

Constructor Summary
StackTraceHelper()
           
 
Method Summary
 String stackTraceToString(Throwable throwable)
          Converts the stack trace of the given throwable into a string representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StackTraceHelper

public StackTraceHelper()
Method Detail

stackTraceToString

public String stackTraceToString(Throwable throwable)
Converts the stack trace of the given throwable into a string representation. The output will be the same as calling throwable.printStackTrace()

Parameters:
throwable - null or non null
Returns:
non null
Since:
0.0.1 (sasl-common-aspect-library)


Copyright © 2010. All Rights Reserved.