Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for getExceptionTypes (0.09 sec)

  1. src/test/java/jcifs/SmbResourceTest.java

                Method getTypeMethod = SmbResource.class.getMethod("getType");
    
                // When
                Class<?>[] existsExceptions = existsMethod.getExceptionTypes();
                Class<?>[] getTypeExceptions = getTypeMethod.getExceptionTypes();
    
                // Then
                assertEquals(1, existsExceptions.length, "exists() should declare CIFSException");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbResourceLocatorInternalTest.java

            assertEquals(0, m1.getExceptionTypes().length);
    
            // overlaps(SmbResourceLocator): boolean, declares CIFSException
            Method m2 = clazz.getMethod("overlaps", SmbResourceLocator.class);
            assertEquals(boolean.class, m2.getReturnType());
            assertEquals(1, m2.getParameterCount());
            Class<?>[] ex = m2.getExceptionTypes();
            assertEquals(1, ex.length);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

      }
    
      /** Determines whether the given method can throw InterruptedException. */
      private static boolean isInterruptible(Method method) {
        return Arrays.asList(method.getExceptionTypes()).contains(InterruptedException.class);
      }
    
      /** Sorts the given methods primarily by name and secondarily by number of parameters. */
      private static void sortMethods(Method[] methods) {
        Arrays.sort(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 27K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/SimpleTimeLimiter.java

          if (declaresInterruptedEx(m)) {
            set.add(m);
          }
        }
        return set;
      }
    
      private static boolean declaresInterruptedEx(Method method) {
        for (Class<?> exType : method.getExceptionTypes()) {
          // debate: == or isAssignableFrom?
          if (exType == InterruptedException.class) {
            return true;
          }
        }
        return false;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/reflect/Invokable.java

        }
        return builder.build();
      }
    
      /** Returns all declared exception types of this {@code Invokable}. */
      public final ImmutableList<TypeToken<? extends Throwable>> getExceptionTypes() {
        ImmutableList.Builder<TypeToken<? extends Throwable>> builder = ImmutableList.builder();
        for (Type type : getGenericExceptionTypes()) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 18.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

          throws NoSuchMethodException {
        Method failMethod = Loser.class.getMethod("lose");
        Invokable<T, ?> invokable = new TypeToken<T>(getClass()) {}.method(failMethod);
        assertThat(invokable.getExceptionTypes()).contains(TypeToken.of(AssertionError.class));
      }
    
      public void testConstructor_getOwnerType() throws NoSuchMethodException {
        @SuppressWarnings("rawtypes") // raw class ArrayList.class
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Sep 02 17:23:59 UTC 2025
    - 89K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

          throws NoSuchMethodException {
        Method failMethod = Loser.class.getMethod("lose");
        Invokable<T, ?> invokable = new TypeToken<T>(getClass()) {}.method(failMethod);
        assertThat(invokable.getExceptionTypes()).contains(TypeToken.of(AssertionError.class));
      }
    
      public void testConstructor_getOwnerType() throws NoSuchMethodException {
        @SuppressWarnings("rawtypes") // raw class ArrayList.class
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Sep 02 17:23:59 UTC 2025
    - 89K bytes
    - Viewed (0)
Back to top