Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 628 for IllegalArgumentException (0.07 sec)

  1. guava/src/com/google/common/eventbus/SubscriberRegistry.java

        } catch (UncheckedExecutionException e) {
          if (e.getCause() instanceof IllegalArgumentException) {
            /*
             * IllegalArgumentException is the one unchecked exception that we know is likely to happen
             * (thanks to the checkArgument calls in getAnnotatedMethodsNotCached). If it happens, we'd
             * prefer to propagate an IllegalArgumentException to the caller. However, we don't want to
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/primitives/IntsTest.java

        assertThat(Ints.ensureCapacity(ARRAY1, 2, 1)).isEqualTo(new int[] {(int) 1, (int) 0, (int) 0});
      }
    
      public void testEnsureCapacity_fail() {
        assertThrows(IllegalArgumentException.class, () -> Ints.ensureCapacity(ARRAY1, -1, 1));
        assertThrows(IllegalArgumentException.class, () -> Ints.ensureCapacity(ARRAY1, 1, -1));
      }
    
      public void testJoin() {
        assertThat(Ints.join(",", EMPTY)).isEmpty();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.2K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerStatusTest.java

                fail("Should throw IllegalArgumentException for empty string");
            } catch (IllegalArgumentException e) {
                // Expected
            }
    
            try {
                CrawlerStatus.valueOf(" RUNNING "); // with spaces
                fail("Should throw IllegalArgumentException for value with spaces");
            } catch (IllegalArgumentException e) {
                // Expected
            }
        }
    
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/graph/TraverserTest.java

        assertThrows(
            IllegalArgumentException.class,
            () -> Traverser.forTree(createDirectedGraph()).breadthFirst('a'));
      }
    
      @Test
      public void forTree_breadthFirstIterable_emptyGraph() {
        assertEqualCharNodes(
            Traverser.forTree(createDirectedGraph()).breadthFirst(charactersOf("")), "");
        assertThrows(
            IllegalArgumentException.class,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 47.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/graph/TraverserTest.java

        assertThrows(
            IllegalArgumentException.class,
            () -> Traverser.forTree(createDirectedGraph()).breadthFirst('a'));
      }
    
      @Test
      public void forTree_breadthFirstIterable_emptyGraph() {
        assertEqualCharNodes(
            Traverser.forTree(createDirectedGraph()).breadthFirst(charactersOf("")), "");
        assertThrows(
            IllegalArgumentException.class,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 47.5K bytes
    - Viewed (2)
  6. android/guava/src/com/google/common/collect/ImmutableMap.java

        if (!safe) {
          throw conflictException(conflictDescription, entry1, entry2);
        }
      }
    
      static IllegalArgumentException conflictException(
          String conflictDescription, Object entry1, Object entry2) {
        return new IllegalArgumentException(
            "Multiple entries with same " + conflictDescription + ": " + entry1 + " and " + entry2);
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 41.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/graph/GraphsTest.java

        // By default, parallel edges are not allowed.
        IllegalArgumentException e =
            assertThrows(IllegalArgumentException.class, () -> directedGraph.addEdge(N1, N2, E12_A));
        assertThat(e).hasMessageThat().contains(ERROR_PARALLEL_EDGE);
    
        // By default, self-loop edges are not allowed.
        e = assertThrows(IllegalArgumentException.class, () -> directedGraph.addEdge(N1, N1, E11));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/CollectPreconditions.java

      static int checkNonnegative(int value, String name) {
        if (value < 0) {
          throw new IllegalArgumentException(name + " cannot be negative but was: " + value);
        }
        return value;
      }
    
      @CanIgnoreReturnValue
      static long checkNonnegative(long value, String name) {
        if (value < 0) {
          throw new IllegalArgumentException(name + " cannot be negative but was: " + value);
        }
        return value;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/suggest/settings/BadWordSettingsTest.java

            try {
                settings.badword().add("aaaa");
                assertTrue(true);
            } catch (IllegalArgumentException e) {
                fail();
            }
    
            try {
                settings.badword().add("");
                fail();
            } catch (IllegalArgumentException e) {
                assertTrue(true);
            }
    
            try {
                settings.badword().add("aaaa bbb");
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/ReflectionFreeAssertThrows.java

                  e -> e instanceof ConcurrentModificationException)
              .put(ExecutionException.class, e -> e instanceof ExecutionException)
              .put(IllegalArgumentException.class, e -> e instanceof IllegalArgumentException)
              .put(IllegalStateException.class, e -> e instanceof IllegalStateException)
              .put(IndexOutOfBoundsException.class, e -> e instanceof IndexOutOfBoundsException)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.3K bytes
    - Viewed (0)
Back to top