Package org.apache.webbeans.util
Class ExceptionUtil
- java.lang.Object
-
- org.apache.webbeans.util.ExceptionUtil
-
public abstract class ExceptionUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RuntimeExceptionaddInformation(RuntimeException e, String additionalinfo)static StringcurrentStack()This is for debugging/logging purpose only!static RuntimeExceptionthrowAsRuntimeException(Throwable throwable)Throws the given Exception as RuntimeException
-
-
-
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)
-
-