org.jetbrains.jet.utils
Class ExceptionUtils

java.lang.Object
  extended by org.jetbrains.jet.utils.ExceptionUtils

public class ExceptionUtils
extends java.lang.Object


Method Summary
static void closeQuietly(java.io.Closeable closeable)
           
static java.lang.RuntimeException rethrow(java.lang.Throwable e)
          Translate exception to unchecked exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

rethrow

public static java.lang.RuntimeException rethrow(java.lang.Throwable e)
Translate exception to unchecked exception. Return type is specified to make it possible to use it like this: throw ExceptionUtils.rethrow(e); In this case compiler knows that code after this rethrowing won't be executed.


closeQuietly

public static void closeQuietly(java.io.Closeable closeable)