Class WrappedRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.loboevolution.apache.xml.utils.WrappedRuntimeException
- All Implemented Interfaces:
Serializable
This class is for throwing important checked exceptions over non-checked methods. It should be
used with care, and in limited circumstances.
- See Also:
-
Constructor Summary
ConstructorDescriptionConstruct a WrappedRuntimeException from a checked exception. -
Method Summary
Modifier and TypeMethodDescriptionGet the checked exception that this runtime exception wraps.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
WrappedRuntimeException
Construct a WrappedRuntimeException from a checked exception.- Parameters:
e
- Primary checked exception
-
-
Method Details
-
getException
Get the checked exception that this runtime exception wraps.- Returns:
- The primary checked exception
-