org.apache.fulcrum.yaafi.framework.util
Class ExceptionUtils

java.lang.Object
  extended by org.apache.fulcrum.yaafi.framework.util.ExceptionUtils

public class ExceptionUtils
extends Object

A subset of the utilities available in commons-lang-2.1 ExceptionUtils.

Author:
Siegfried Goeschl

Constructor Summary
ExceptionUtils()
          Public constructor allows an instance of ExceptionUtils to be created, although that is not normally necessary.
 
Method Summary
static String getStackTrace(Throwable throwable)
          Gets the stack trace from a Throwable as a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionUtils

public ExceptionUtils()

Public constructor allows an instance of ExceptionUtils to be created, although that is not normally necessary.

Method Detail

getStackTrace

public static String getStackTrace(Throwable throwable)

Gets the stack trace from a Throwable as a String.

Parameters:
throwable - the Throwable to be examined
Returns:
the stack trace as generated by the exception's printStackTrace(PrintWriter) method


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