@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) |
static boolean |
isInterrupt(Throwable t) |
static void |
rethrowIfInterrupt(Throwable t) |
private ExceptionUtil()
public static boolean isInterrupt(Throwable t)
public static void rethrowIfInterrupt(Throwable t) throws InterruptedIOException
InterruptedIOException
- if t was an interruption. Does nothing otherwise.public static InterruptedIOException asInterrupt(Throwable t)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.