org.I0Itec.zkclient
Class ExceptionUtil
java.lang.Object
org.I0Itec.zkclient.ExceptionUtil
public class ExceptionUtil
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExceptionUtil
public ExceptionUtil()
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.