private boolean isThreadInterruptException()

in omega/omega-transaction/src/main/java/org/apache/servicecomb/pack/omega/transaction/wrapper/SagaStartAnnotationProcessorTimeoutWrapper.java [101:112]


  private boolean isThreadInterruptException(Throwable throwable) {
    if (throwable instanceof InterruptedException ||
        throwable instanceof IllegalMonitorStateException ||
        throwable instanceof ClosedByInterruptException ||
        throwable.getCause() instanceof InterruptedException ||
        throwable.getCause() instanceof IllegalMonitorStateException ||
        throwable.getCause() instanceof ClosedByInterruptException) {
      return true;
    } else {
      return false;
    }
  }