public class WrappedException extends RuntimeException
Exceptions.wrap()
, but it can be created directly for any purpose. Wrapped checked exception can be retrieved using Throwable.getCause()
method.
Exceptions.wrap()
, Serialized Form
Constructor and Description |
---|
WrappedException(Throwable cause)
Wraps checked exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public WrappedException(Throwable cause)
Throwable.getCause()
method.
cause
- exception to be wrapped, usually a checked exception
Exceptions.wrap()
Copyright © 2017–2020 Robert Važan. All rights reserved.