org.dellroad.stuff.java
Class CheckedExceptionWrapper
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.dellroad.stuff.java.CheckedExceptionWrapper
- All Implemented Interfaces:
- Serializable
public class CheckedExceptionWrapper
- extends RuntimeException
Wraps checked exceptions so they can be thrown across API methods that don't declare them.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
CheckedExceptionWrapper
public CheckedExceptionWrapper(Exception exception)
- Constructor.
- Throws:
IllegalArgumentException - if exception is null
getException
public Exception getException()
- Get the wrapped exception.
throwException
public void throwException()
throws Exception
- Throw the wrapped exception.
- Throws:
Exception