Package org.apache.xml.utils
Class WrappedRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.xml.utils.WrappedRuntimeException
-
- All Implemented Interfaces:
java.io.Serializable
public class WrappedRuntimeException extends java.lang.RuntimeException
This class is for throwing important checked exceptions over non-checked methods. It should be used with care, and in limited circumstances.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WrappedRuntimeException(java.lang.Exception e)
Construct a WrappedRuntimeException from a checked exception.WrappedRuntimeException(java.lang.String msg, java.lang.Exception e)
Constructor WrappedRuntimeException
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Exception
getException()
Get the checked exception that this runtime exception wraps.
-
-
-
Constructor Detail
-
WrappedRuntimeException
public WrappedRuntimeException(java.lang.Exception e)
Construct a WrappedRuntimeException from a checked exception.- Parameters:
e
- Primary checked exception
-
WrappedRuntimeException
public WrappedRuntimeException(java.lang.String msg, java.lang.Exception e)
Constructor WrappedRuntimeException- Parameters:
msg
- Exception information.e
- Primary checked exception
-
-