test_class.file: utils/src/test/java/com/cloud/utils/exception/ExceptionUtilTest.java
test_class.identifier: ExceptionUtilTest
test_case.body: @Test
      public void test() throws Exception {
          FileNotFoundException fnfe = new FileNotFoundException();
          try {
              ExceptionUtil.rethrow(fnfe, IOException.class);
              fail();
          } catch (IOException e) {
              assertTrue("we won !?!", true);
          }
  
          ExceptionUtil.rethrow(fnfe, ClassNotFoundException.class);
  
          try {
              ExceptionUtil.rethrow(fnfe, FileNotFoundException.class);
              fail();
          } catch (FileNotFoundException e) {
              assertTrue("we won !?!", true);
          }
      }
test_case.class_method_signature: ExceptionUtilTest.test()
test_case.full_signature: @Test public void test()
test_case.identifier: test
test_case.invocations: rethrow fail assertTrue rethrow rethrow fail assertTrue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test()
focal_class.file: utils/src/main/java/com/cloud/utils/exception/ExceptionUtil.java
focal_class.identifier: ExceptionUtil
focal_class.class_method_signature: ExceptionUtil.toString(Throwable th)
focal_class.full_signature: public static String toString(Throwable th)
focal_class.identifier: toString
focal_class.modifiers: public static
focal_class.parameters: (Throwable th)
focal_class.return: String
focal_class.signature: String toString(Throwable th)
focal_class.class_method_signature: ExceptionUtil.toString(Throwable th, boolean printStack)
focal_class.full_signature: public static String toString(Throwable th, boolean printStack)
focal_class.identifier: toString
focal_class.modifiers: public static
focal_class.parameters: (Throwable th, boolean printStack)
focal_class.return: String
focal_class.signature: String toString(Throwable th, boolean printStack)
focal_class.class_method_signature: ExceptionUtil.rethrow(Throwable t, Class<T> clz)
focal_class.full_signature: @SuppressWarnings("unchecked") public static void rethrow(Throwable t, Class<T> clz)
focal_class.identifier: rethrow
focal_class.modifiers: @SuppressWarnings("unchecked") public static
focal_class.parameters: (Throwable t, Class<T> clz)
focal_class.return: void
focal_class.signature: void rethrow(Throwable t, Class<T> clz)
focal_class.class_method_signature: ExceptionUtil.rethrowRuntime(Throwable t)
focal_class.full_signature: public static void rethrowRuntime(Throwable t)
focal_class.identifier: rethrowRuntime
focal_class.modifiers: public static
focal_class.parameters: (Throwable t)
focal_class.return: void
focal_class.signature: void rethrowRuntime(Throwable t)
focal_method.body: @SuppressWarnings("unchecked")
      public static <T extends Throwable> void rethrow(Throwable t, Class<T> clz) throws T {
          if (clz.isAssignableFrom(t.getClass()))
              throw (T)t;
      }
focal_method.class_method_signature: ExceptionUtil.rethrow(Throwable t, Class<T> clz)
focal_method.full_signature: @SuppressWarnings("unchecked") public static void rethrow(Throwable t, Class<T> clz)
focal_method.identifier: rethrow
focal_method.invocations: isAssignableFrom getClass
focal_method.modifiers: @SuppressWarnings("unchecked") public static
focal_method.parameters: (Throwable t, Class<T> clz)
focal_method.return: void
focal_method.signature: void rethrow(Throwable t, Class<T> clz)