org.I0Itec.zkclient
Class ExceptionUtil

java.lang.Object
  extended by org.I0Itec.zkclient.ExceptionUtil

public class ExceptionUtil
extends java.lang.Object


Constructor Summary
ExceptionUtil()
           
 
Method Summary
static java.lang.RuntimeException convertToRuntimeException(java.lang.Exception e)
           
static void retainInterruptFlag(java.lang.Throwable catchedException)
          This sets the interrupt flag if the catched exception was an InterruptedException.
static void rethrowInterruptedException(java.lang.Exception e)
           
 
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

convertToRuntimeException

public static java.lang.RuntimeException convertToRuntimeException(java.lang.Exception e)

retainInterruptFlag

public static void retainInterruptFlag(java.lang.Throwable catchedException)
This sets the interrupt flag if the catched exception was an InterruptedException. Catching such an exception always clears the interrupt flag.

Parameters:
catchedException - The catched exception.

rethrowInterruptedException

public static void rethrowInterruptedException(java.lang.Exception e)
                                        throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException