FileDocCategorySizeDatePackage
WrappedRuntimeException.javaAPI DocJava SE 5 API1747Fri Aug 26 14:56:04 BST 2005com.sun.org.apache.xml.internal.utils

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.

Fields Summary
private Exception
m_exception
Primary checked exception.
Constructors Summary
public WrappedRuntimeException(Exception e)
Construct a WrappedRuntimeException from a checked exception.

param
e Primary checked exception


    super(e.getMessage());

    m_exception = e;
  
public WrappedRuntimeException(String msg, Exception e)
Constructor WrappedRuntimeException

param
msg Exception information.
param
e Primary checked exception


    super(msg);

    m_exception = e;
  
Methods Summary
public java.lang.ExceptiongetException()
Get the checked exception that this runtime exception wraps.

return
The primary checked exception

    return m_exception;