public static void rethrowIfInterrupt(Throwable t) throws InterruptedIOException {
    InterruptedIOException iie = asInterrupt(t);

    if (iie != null) {
      throw iie;
    }
  }
Throw InterruptedIOException if t was an interruption, nothing otherwise.
hbase-common/src/main/java/org/apache/hadoop/hbase/util/ExceptionUtil.java