org.orbeon.oxf.common
Class OXFException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.orbeon.oxf.common.OXFException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ValidationException

public class OXFException
extends RuntimeException

See Also:
Serialized Form

Nested Class Summary
static class OXFException.StackTraceElement
           
 
Constructor Summary
OXFException(String message)
           
OXFException(String message, Throwable throwable)
           
OXFException(Throwable throwable)
           
 
Method Summary
 String getMessage()
           
 Throwable getNestedException()
           
static Throwable getNestedException(Throwable t)
          Returns the exception directly nested in e.
static Throwable getRootThrowable(Throwable e)
          Get exception at the source of the problem.
static OXFException.StackTraceElement[] getStackTraceElements(Throwable t)
          Return the stack trace of a throwable.
 void printStackTrace()
           
 void printStackTrace(PrintStream s)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OXFException

public OXFException(String message)

OXFException

public OXFException(Throwable throwable)

OXFException

public OXFException(String message,
                    Throwable throwable)
Method Detail

getNestedException

public static Throwable getNestedException(Throwable t)
Returns the exception directly nested in e.


getStackTraceElements

public static OXFException.StackTraceElement[] getStackTraceElements(Throwable t)
Return the stack trace of a throwable. This method uses introspection. It will return null on Java versions prior to 1.4.


getRootThrowable

public static Throwable getRootThrowable(Throwable e)
Get exception at the source of the problem.


getNestedException

public Throwable getNestedException()

printStackTrace

public void printStackTrace(PrintStream s)

printStackTrace

public void printStackTrace()

getMessage

public String getMessage()