test_class.file: shardingsphere-governance/shardingsphere-governance-repository/shardingsphere-governance-repository-provider/shardingsphere-governance-repository-zookeeper-curator/src/test/java/org/apache/shardingsphere/governance/repository/zookeeper/handler/CuratorZookeeperExceptionHandlerTest.java
test_class.identifier: CuratorZookeeperExceptionHandlerTest
test_case.body: @Test
      public void assertHandleException() {
          CuratorZookeeperExceptionHandler.handleException(null);
          CuratorZookeeperExceptionHandler.handleException(new NoNodeException(""));
          CuratorZookeeperExceptionHandler.handleException(new Exception(new NoNodeException("")));
          try {
              CuratorZookeeperExceptionHandler.handleException(new Exception(""));
              fail("must be failed handle new Exception().");
              // CHECKSTYLE:OFF
          } catch (final Exception ex) {
              // CHECKSTYLE:ON
              assertTrue(ex instanceof GovernanceException);
          }
      }
test_case.class_method_signature: CuratorZookeeperExceptionHandlerTest.assertHandleException()
test_case.full_signature: @Test public void assertHandleException()
test_case.identifier: assertHandleException
test_case.invocations: handleException handleException handleException handleException fail assertTrue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertHandleException()
focal_class.file: shardingsphere-governance/shardingsphere-governance-repository/shardingsphere-governance-repository-provider/shardingsphere-governance-repository-zookeeper-curator/src/main/java/org/apache/shardingsphere/governance/repository/zookeeper/handler/CuratorZookeeperExceptionHandler.java
focal_class.identifier: CuratorZookeeperExceptionHandler
focal_class.class_method_signature: CuratorZookeeperExceptionHandler.handleException(final Exception cause)
focal_class.full_signature: public static void handleException(final Exception cause)
focal_class.identifier: handleException
focal_class.modifiers: public static
focal_class.parameters: (final Exception cause)
focal_class.return: void
focal_class.signature: void handleException(final Exception cause)
focal_class.class_method_signature: CuratorZookeeperExceptionHandler.isIgnoredException(final Throwable cause)
focal_class.full_signature: private static boolean isIgnoredException(final Throwable cause)
focal_class.identifier: isIgnoredException
focal_class.modifiers: private static
focal_class.parameters: (final Throwable cause)
focal_class.return: boolean
focal_class.signature: boolean isIgnoredException(final Throwable cause)
focal_method.body: public static void handleException(final Exception cause) {
          if (null == cause) {
              return;
          }
          if (isIgnoredException(cause) || null != cause.getCause() && isIgnoredException(cause.getCause())) {
              log.debug("Ignored exception for: {}", cause.getMessage());
          } else if (cause instanceof InterruptedException) {
              Thread.currentThread().interrupt();
          } else {
              throw new GovernanceException(cause);
          }
      }
focal_method.class_method_signature: CuratorZookeeperExceptionHandler.handleException(final Exception cause)
focal_method.full_signature: public static void handleException(final Exception cause)
focal_method.identifier: handleException
focal_method.invocations: isIgnoredException getCause isIgnoredException getCause debug getMessage interrupt currentThread
focal_method.modifiers: public static
focal_method.parameters: (final Exception cause)
focal_method.return: void
focal_method.signature: void handleException(final Exception cause)