org.apache.xml.serializer.utils
Class WrappedRuntimeException
RuntimeException
org.apache.xml.serializer.utils.WrappedRuntimeException
public final 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.
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.
Exception | getException() - Get the checked exception that this runtime exception wraps.
|
WrappedRuntimeException
public WrappedRuntimeException(Exception e)
Construct a WrappedRuntimeException from a
checked exception.
e
- Primary checked exception
WrappedRuntimeException
public WrappedRuntimeException(String msg,
Exception e)
Constructor WrappedRuntimeException
msg
- Exception information.e
- Primary checked exception
getException
public Exception getException()
Get the checked exception that this runtime exception wraps.
- The primary checked exception
Copyright B) 2005 Apache XML Project. All Rights Reserved.