Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sun.jersey.core.util
Class ThrowHelper

    java.lang.Object
      com.sun.jersey.core.util.ThrowHelper

    public class ThrowHelper

extends java.lang.Object

Help functionality when throwing exceptions.

Author:
  Paul.Sandoz@Sun.Com

Constructor Summary
`ThrowHelper()`

Method Summary
`static
`<T extends java.lang.Exception> T`
` | `withInitCause(java.lang.Exception cause, T effect)` Set the cause of an exception.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ThrowHelper

    public ThrowHelper()

Method Detail

### withInitCause

    public static <T extends java.lang.Exception> T withInitCause(java.lang.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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2008 Sun Microsystems, Inc. All Rights Reserved.