public static boolean isInterrupt(Throwable t) {
    if (t instanceof InterruptedException) {
      return true;
    }

    if (t instanceof SocketTimeoutException) {
      return false;
    }

    return (t instanceof InterruptedIOException || t instanceof ClosedByInterruptException);
  }
Returns true if the throwable comes an interruption, false otherwise.
hbase-common/src/main/java/org/apache/hadoop/hbase/util/ExceptionUtil.java