org.I0Itec.zkclient
Class ExceptionUtil

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

public class ExceptionUtil
extends Object


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

retainInterruptFlag

public static void retainInterruptFlag(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(Throwable e)
                                        throws InterruptedException
Throws:
InterruptedException


Copyright © 2011. All Rights Reserved.