org.apache.xml.utils

Class WrappedRuntimeException

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.
Constructor Summary
WrappedRuntimeException(Exception e)
Construct a WrappedRuntimeException from a checked exception.
WrappedRuntimeException(String msg, Exception e)
Constructor WrappedRuntimeException
Method Summary
ExceptiongetException()
Get the checked exception that this runtime exception wraps.

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

Copyright B) 2006 Apache XML Project. All Rights Reserved.