org.apache.xml.utils
Class WrappedRuntimeException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.apache.xml.utils.WrappedRuntimeException
All Implemented Interfaces:
Serializable

public class WrappedRuntimeException
extends RuntimeException

This class is for throwing important checked exceptions over non-checked methods. It should be used with care, and in limited circumstances.

See Also:
Serialized Form

Field Summary
private  Exception m_exception
          Primary checked exception.
 
Fields inherited from class java.lang.RuntimeException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
WrappedRuntimeException(Exception e)
          Construct a WrappedRuntimeException from a checked exception.
WrappedRuntimeException(String msg, Exception e)
          Constructor WrappedRuntimeException
 
Method Summary
 Exception getException()
          Get the checked exception that this runtime exception wraps.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_exception

private Exception m_exception
Primary checked exception.

Constructor Detail

WrappedRuntimeException

public WrappedRuntimeException(Exception e)
Construct a WrappedRuntimeException from a checked exception.

Parameters:
e - Primary checked exception

WrappedRuntimeException

public WrappedRuntimeException(String msg,
                               Exception e)
Constructor WrappedRuntimeException

Parameters:
msg - Exception information.
e - Primary checked exception
Method Detail

getException

public Exception getException()
Get the checked exception that this runtime exception wraps.

Returns:
The primary checked exception