org.apache.webbeans.util
Class ExceptionUtil

java.lang.Object
  extended by org.apache.webbeans.util.ExceptionUtil

public abstract class ExceptionUtil
extends Object


Method Summary
static RuntimeException addInformation(RuntimeException e, String additionalinfo)
           
static String currentStack()
          This is for debugging/logging purpose only!
static RuntimeException throwAsRuntimeException(Throwable throwable)
          Throws the given Exception as RuntimeException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

throwAsRuntimeException

public static RuntimeException throwAsRuntimeException(Throwable throwable)
Throws the given Exception as RuntimeException

Returns:
null; this is just for IDEs to allow them detect the end of the control flow

currentStack

public static String currentStack()
This is for debugging/logging purpose only!

Returns:
The stack trace of the current Thread.

addInformation

public static RuntimeException addInformation(RuntimeException e,
                                              String additionalinfo)


Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.