public class ExceptionUtil extends Object
Constructor and Description |
---|
ExceptionUtil() |
Modifier and Type | Method and Description |
---|---|
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) |
public static RuntimeException convertToRuntimeException(Throwable e)
public static void retainInterruptFlag(Throwable catchedException)
InterruptedException
. Catching such an
exception always clears the interrupt flag.catchedException
- The catched exception.public static void rethrowInterruptedException(Throwable e) throws InterruptedException
InterruptedException
Copyright © 2019. All rights reserved.