@InterfaceAudience.Private public final class ExceptionUtil extends Object
Modifier | Constructor and Description |
---|---|
private |
ExceptionUtil() |
Modifier and Type | Method and Description |
---|---|
static InterruptedIOException |
asInterrupt(Throwable t)
Returns an InterruptedIOException if t was an interruption, null otherwise
|
static boolean |
isInterrupt(Throwable t)
Returns true if the throwable comes an interruption, false otherwise.
|
static void |
rethrowIfInterrupt(Throwable t)
Throw InterruptedIOException if t was an interruption, nothing otherwise.
|
private ExceptionUtil()
public static boolean isInterrupt(Throwable t)
public static void rethrowIfInterrupt(Throwable t) throws InterruptedIOException
InterruptedIOException
public static InterruptedIOException asInterrupt(Throwable t)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.