- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.machinezoo.noexception.WrappedException
-
- All Implemented Interfaces:
-
Serializable
@Deprecated public class WrappedException extends RuntimeException
Deprecated.UseUndeclaredThrowableException
instead.General-purpose checked exception wrapper. Please use JDK'sUndeclaredThrowableException
instead.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WrappedException(Throwable cause)
Deprecated.Wraps checked exception.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
WrappedException
public WrappedException(Throwable cause)
Deprecated.Wraps checked exception. Wrapped checked exception can be later retrieved usingThrowable.getCause()
method.- Parameters:
-
cause
- exception to be wrapped, usually a checked exception - See Also:
-
Exceptions.wrap()
-
-