FileDocCategorySizeDatePackage
WrappedRuntimeException.javaAPI DocJava SE 6 API1821Tue Jun 10 00:23:12 BST 2008com.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
static final long
serialVersionUID
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;