org.apache.xml.serializer.utils
Class WrappedRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.xml.serializer.utils.WrappedRuntimeException
All Implemented Interfaces:
java.io.Serializable

public final class WrappedRuntimeException
extends java.lang.RuntimeException

This class is for throwing important checked exceptions over non-checked methods. It should be used with care, and in limited circumstances. This class is a copy of the one in org.apache.xml.utils. It exists to cut the serializers dependancy on that package. This class is not a public API, it is only public because it is used by org.apache.xml.serializer.

See Also:
Serialized Form

Field Summary
private  java.lang.Exception m_exception
          Primary checked exception.
(package private) static long serialVersionUID
           
 
Constructor Summary
WrappedRuntimeException(java.lang.Exception e)
          Construct a WrappedRuntimeException from a checked exception.
WrappedRuntimeException(java.lang.String msg, java.lang.Exception e)
          Constructor WrappedRuntimeException
 
Method Summary
 java.lang.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

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

m_exception

private java.lang.Exception m_exception
Primary checked exception.

Constructor Detail

WrappedRuntimeException

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

Parameters:
e - Primary checked exception

WrappedRuntimeException

public WrappedRuntimeException(java.lang.String msg,
                               java.lang.Exception e)
Constructor WrappedRuntimeException

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

getException

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

Returns:
The primary checked exception