com.sun.jersey.core.util
Class ThrowHelper
java.lang.Object
com.sun.jersey.core.util.ThrowHelper
public class ThrowHelper
- extends Object
Help functionality when throwing exceptions.
- Author:
- Paul.Sandoz@Sun.Com
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThrowHelper
public ThrowHelper()
withInitCause
public static <T extends Exception> T withInitCause(Exception cause,
T effect)
- Set the cause of an exception.
- Type Parameters:
T
- the exception type.- Parameters:
cause
- the cause.effect
- the effect
- Returns:
- the effect.
Copyright © 2011 Oracle Corporation. All Rights Reserved.