org.formaria.task
Class LaunderThrowable

java.lang.Object
  extended by org.formaria.task.LaunderThrowable

public class LaunderThrowable
extends java.lang.Object

StaticUtilities


Constructor Summary
LaunderThrowable()
           
 
Method Summary
static java.lang.RuntimeException launderThrowable(java.lang.Throwable t)
          Coerce an unchecked Throwable to a RuntimeException

If the Throwable is an Error, throw it; if it is a RuntimeException return it, otherwise throw IllegalStateException

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

Constructor Detail

LaunderThrowable

public LaunderThrowable()
Method Detail

launderThrowable

public static java.lang.RuntimeException launderThrowable(java.lang.Throwable t)
Coerce an unchecked Throwable to a RuntimeException

If the Throwable is an Error, throw it; if it is a RuntimeException return it, otherwise throw IllegalStateException