Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 251 - 260 of 863 for IllegalArgumentException (0.13 seconds)

  1. build-tools-internal/src/test/java/org/elasticsearch/gradle/DistributionDownloadPluginTests.java

            String version,
            ElasticsearchDistributionType type,
            Platform platform,
            Boolean bundledJdk,
            String message
        ) {
            IllegalArgumentException e = expectThrows(
                IllegalArgumentException.class,
                () -> checkDistro(project, name, version, type, platform, bundledJdk)
            );
            assertThat(e.getMessage(), containsString(message));
        }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 22 07:24:59 GMT 2021
    - 6.4K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/escape/Escaper.java

       *   <li>{@link UnicodeEscaper} handles <a href="http://en.wikipedia.org/wiki/UTF-16">UTF-16</a>
       *       correctly, including surrogate character pairs. If the input is badly formed the escaper
       *       should throw {@link IllegalArgumentException}.
       *   <li>{@link CharEscaper} handles Java characters independently and does not verify the input
       *       for well formed characters. A {@code CharEscaper} should not be used in situations where
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 13 15:45:16 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java

        assertThrows(
            IllegalArgumentException.class, () -> map.getInstance(this.<Number>anyIterableType()));
      }
    
      public void testPut_containsTypeVariable() {
        ImmutableTypeToInstanceMap.Builder<Iterable<Integer>> builder =
            ImmutableTypeToInstanceMap.builder();
        assertThrows(
            IllegalArgumentException.class,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 6.9K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb/StaticJAASConfigurationTest.java

        }
    
        @Test
        @DisplayName("Null options cause IllegalArgumentException when retrieving entries (JAAS requires non-null options)")
        void nullOptions_throwOnAccess() {
            // Arrange
            StaticJAASConfiguration cfg = new StaticJAASConfiguration(null);
    
            // Act + Assert
            assertThrows(IllegalArgumentException.class, () -> cfg.getAppConfigurationEntry("any"),
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/graph/ImmutableValueGraph.java

         * silently {@link #addNode(Object) add} each missing endpoint to the graph.
         *
         * @return this {@code Builder} object
         * @throws IllegalArgumentException if the introduction of the edge would violate {@link
         *     #allowsSelfLoops()}
         * @throws IllegalArgumentException if the endpoints are unordered and the graph is directed
         */
        @CanIgnoreReturnValue
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/primitives/SignedBytes.java

       *
       * @param value any value in the range of the {@code byte} type
       * @return the {@code byte} value that equals {@code value}
       * @throws IllegalArgumentException if {@code value} is greater than {@link Byte#MAX_VALUE} or
       *     less than {@link Byte#MIN_VALUE}
       */
      public static byte checkedCast(long value) {
        byte result = (byte) value;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 7.2K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

          // the range have a lower bound
          throw new IllegalArgumentException(
              "Neither the DiscreteDomain nor this range set are bounded below");
        } else if (!span.hasUpperBound()) {
          try {
            domain.maxValue();
          } catch (NoSuchElementException e) {
            throw new IllegalArgumentException(
                "Neither the DiscreteDomain nor this range set are bounded above");
          }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:45:58 GMT 2026
    - 27.5K bytes
    - Click Count (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/MapCreationTester.java

        assertThrows(IllegalArgumentException.class, () -> resetMap(entries));
      }
    
      @MapFeature.Require(REJECTS_DUPLICATES_AT_CREATION)
      @CollectionSize.Require(absent = {ZERO, ONE})
      public void testCreateWithDuplicates_nonNullDuplicatesRejected() {
        Entry<K, V>[] entries = getEntriesMultipleNonNullKeys();
        assertThrows(IllegalArgumentException.class, () -> resetMap(entries));
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/TopKSelector.java

       * relative to the natural ordering of the elements, and returns them via {@link #topK} in
       * ascending order.
       *
       * @throws IllegalArgumentException if {@code k < 0} or {@code k > Integer.MAX_VALUE / 2}
       */
      public static <T extends Comparable<? super T>> TopKSelector<T> least(int k) {
        return least(k, Ordering.natural());
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Aug 31 13:15:26 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/reflect/InvokableTest.java

      }
    
      public void testConstructor_invalidReturning() throws Exception {
        Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class);
        assertThrows(IllegalArgumentException.class, () -> delegate.returning(SubPrepender.class));
      }
    
      public void testStaticMethod_returnType() throws Exception {
        Invokable<?, ?> delegate = Prepender.method("prepend", String.class, Iterable.class);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 31.1K bytes
    - Click Count (0)
Back to Top