Top Description Fields Constructors Methods
com.sun.org.apache.xml.internal.serializer.utils

public final Class WrappedRuntimeException

extends RuntimeException
Class Inheritance

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 com.sun.org.apache.xml.internal.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 com.sun.org.apache.xml.internal.serializer.

Field Summary

Modifier and TypeField and Description
private Exception
m_exception

Primary checked exception.

pack-priv static final long

Constructor Summary

AccessConstructor and Description
public
WrappedRuntimeException(Exception
Primary checked exception
e
)

Construct a WrappedRuntimeException from a checked exception.

public
WrappedRuntimeException(String
Exception information.
msg
,
Exception
Primary checked exception
e
)

Constructor WrappedRuntimeException

Method Summary

Modifier and TypeMethod and Description
public Exception

Returns:

The primary checked exception
getException
()

Get the checked exception that this runtime exception wraps.

Field Detail

m_exceptionback to summary
private Exception m_exception

Primary checked exception.

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Constructor Detail

WrappedRuntimeExceptionback to summary
public WrappedRuntimeException(Exception e)

Construct a WrappedRuntimeException from a checked exception.

Parameters
e:Exception

Primary checked exception

WrappedRuntimeExceptionback to summary
public WrappedRuntimeException(String msg, Exception e)

Constructor WrappedRuntimeException

Parameters
msg:String

Exception information.

e:Exception

Primary checked exception

Method Detail

getExceptionback to summary
public Exception getException()

Get the checked exception that this runtime exception wraps.

Returns:Exception

The primary checked exception