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

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

public class ExceptionUtils
extends java.lang.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 java.lang.String getStackTrace(java.lang.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 java.lang.String getStackTrace(java.lang.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 © 2000-2011 Apache Software Foundation. All Rights Reserved.