org.eclipse.net4j.util
Class WrappedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.eclipse.net4j.util.WrappedException
- All Implemented Interfaces:
- Serializable
- public class WrappedException
- extends RuntimeException
An unchecked exception that wraps a checked exception. Wrapping occurs conditionally in the static
wrap()
methods.
- See Also:
- Serialized Form
- No Extend
- This class is not intended to be subclassed by clients.
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
exception
public Exception exception()
wrap
public static RuntimeException wrap(Exception exception,
String message)
- Since:
- 3.1
wrap
public static RuntimeException wrap(Exception exception)
unwrap
public static Exception unwrap(Exception exception)
Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.