dk.netarkivet.common.utils
Class ExceptionUtils

java.lang.Object
  extended by dk.netarkivet.common.utils.ExceptionUtils

public class ExceptionUtils
extends java.lang.Object

Utilities for reading a stacktrace.


Method Summary
static java.lang.String getStackTrace(java.lang.Throwable aThrowable)
          Prints the stacktrace of an exception to a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getStackTrace

public static java.lang.String getStackTrace(java.lang.Throwable aThrowable)
Prints the stacktrace of an exception to a String. Why this functionality is not included in the standard java libraries is anybody's guess.

Parameters:
aThrowable - An exception
Returns:
String containing a stacktrace of exception aThrowable. Will return the string "null" and a linebreak if aThrowable is null.