nl.knowledgeplaza.util
Class ExceptionUtil

java.lang.Object
  extended by nl.knowledgeplaza.util.ExceptionUtil

public class ExceptionUtil
extends java.lang.Object

Version:
$Revision: 1.2 $

Constructor Summary
ExceptionUtil()
           
 
Method Summary
static java.lang.String describe(java.lang.Throwable t)
          Fetch all possible data from an exception (causes, extra info, next exceptions, ...) as a string
static java.lang.String describeExtended(java.lang.Throwable t)
          Fetch all possible data from an exception (causes, extra info, next exceptions, ...) as a string plus environment information like system properties.
static java.lang.String determineDisplayableMessage(java.lang.Throwable t)
          Create a displayable exception test
static java.lang.Throwable findThrowableInChain(java.lang.Throwable t, java.lang.Class clazz)
           
static java.lang.String getStacktrace(java.lang.Throwable t)
          Return the stacktrace of a throwable as a string
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionUtil

public ExceptionUtil()
Method Detail

getStacktrace

public static java.lang.String getStacktrace(java.lang.Throwable t)
Return the stacktrace of a throwable as a string

Parameters:
t - Throwable to be stacktraced
Returns:
stacktrace as String

determineDisplayableMessage

public static java.lang.String determineDisplayableMessage(java.lang.Throwable t)
Create a displayable exception test

Parameters:
t -
Returns:

describe

public static java.lang.String describe(java.lang.Throwable t)
Fetch all possible data from an exception (causes, extra info, next exceptions, ...) as a string

Parameters:
t -
Returns:

describeExtended

public static java.lang.String describeExtended(java.lang.Throwable t)
Fetch all possible data from an exception (causes, extra info, next exceptions, ...) as a string plus environment information like system properties.

Parameters:
t -
Returns:

findThrowableInChain

public static java.lang.Throwable findThrowableInChain(java.lang.Throwable t,
                                                       java.lang.Class clazz)
Parameters:
t -
clazz -
Returns:

main

public static void main(java.lang.String[] args)


Copyright © 2010. All Rights Reserved.