org.iternine.jeppetto.enhance
Class ExceptionUtil

java.lang.Object
  extended by org.iternine.jeppetto.enhance.ExceptionUtil

public class ExceptionUtil
extends Object


Constructor Summary
ExceptionUtil()
           
 
Method Summary
static RuntimeException propagate(Throwable t)
           
static
<T extends Throwable>
void
propagateIfInstanceOf(Throwable t, Class<T> cls)
           
static void propagateIfPossible(Throwable t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionUtil

public ExceptionUtil()
Method Detail

propagate

public static RuntimeException propagate(Throwable t)

propagateIfInstanceOf

public static <T extends Throwable> void propagateIfInstanceOf(Throwable t,
                                                               Class<T> cls)
                                  throws T extends Throwable
Throws:
T extends Throwable

propagateIfPossible

public static void propagateIfPossible(Throwable t)


Copyright © 2012. All Rights Reserved.