VistALink v1.6

gov.va.med.exception
Class ExceptionUtils

java.lang.Object
  extended by gov.va.med.exception.ExceptionUtils

Deprecated. Superceded by JDK 1.4+ exception functionality.

public class ExceptionUtils
extends java.lang.Object

Exposes utility methods for handling exceptions


Method Summary
static java.lang.String getFullStackTrace(java.lang.Throwable e)
          Deprecated. Superceded by JDK 1.4+ exception functionality.
static java.lang.Throwable getNestedExceptionByClass(java.lang.Throwable e, java.lang.Class exceptionClass)
          Deprecated. Superceded by JDK 1.4+ exception functionality.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFullStackTrace

public static java.lang.String getFullStackTrace(java.lang.Throwable e)
Deprecated. Superceded by JDK 1.4+ exception functionality.

Gets the full stack trace as a string.

Parameters:
e -
Returns:
String

getNestedExceptionByClass

public static java.lang.Throwable getNestedExceptionByClass(java.lang.Throwable e,
                                                            java.lang.Class exceptionClass)
Deprecated. Superceded by JDK 1.4+ exception functionality.

Gets the nested exception if exception is an instance of the exceptionClass or if any nested exception is an instance of the type exceptionClass.

If desired instance of exceptionClass is not found in the nested exception stack then null is returned.

Can be used to unwind nested exception stack.

Parameters:
e -
exceptionClass -
Returns:
Throwable

VistALink v1.6

VistALink v1.6