Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 511 - 520 of 863 for IllegalArgumentException (0.14 seconds)

  1. src/main/java/jcifs/dcerpc/UUID.java

                case 'c':
                case 'd':
                case 'e':
                case 'f':
                    value += 10 + arr[ai] - 'a';
                    break;
                default:
                    throw new IllegalArgumentException(new String(arr, offset, length));
                }
                count++;
            }
    
            return value;
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/query/BoostQueryCommandTest.java

            TermQuery termQuery = new TermQuery(term);
    
            try {
                BoostQuery boostQuery = new BoostQuery(termQuery, -1.5f);
                fail("Should have thrown IllegalArgumentException for negative boost");
            } catch (IllegalArgumentException e) {
                // Expected exception
                assertTrue(e.getMessage().contains("boost must be a positive float"));
            }
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 17K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/collect/LinkedHashMultimapTest.java

        multimap.put("foo", 3);
        assertEquals(ImmutableSet.of(1, 3), multimap.get("foo"));
      }
    
      public void testCreateFromIllegalSizes() {
        assertThrows(IllegalArgumentException.class, () -> LinkedHashMultimap.create(-20, 15));
    
        assertThrows(IllegalArgumentException.class, () -> LinkedHashMultimap.create(20, -15));
      }
    
      @GwtIncompatible // unreasonably slow
      public void testGetIteration() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 16.5K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

      }
    
      @Test
      public void putEdge_doesntAllowSelfLoops() {
        assume().that(graphIsMutable()).isTrue();
        assume().that(graph.allowsSelfLoops()).isFalse();
    
        IllegalArgumentException e =
            assertThrows(IllegalArgumentException.class, () -> putEdge(N1, N1));
        assertThat(e).hasMessageThat().contains(ERROR_SELF_LOOP);
      }
    
      @Test
      public void putEdge_allowsSelfLoops() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Oct 06 20:14:55 GMT 2025
    - 13.2K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

         * @return complete URL with context path and optional timestamp parameter
         * @throws IllegalArgumentException if input is null or doesn't start with '/'
         */
        public static String url(final String input) {
            if (input == null) {
                final String msg = "The argument 'input' should not be null.";
                throw new IllegalArgumentException(msg);
            }
            if (!input.startsWith("/")) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 25.4K bytes
    - Click Count (1)
  6. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/RecordedRequest.kt

        this.failure = failure
    
        if (socket is SSLSocket) {
          try {
            this.handshake = socket.session.handshake()
          } catch (e: IOException) {
            throw IllegalArgumentException(e)
          }
        } else {
          this.handshake = null
        }
    
        if (requestLine.isNotEmpty()) {
          val methodEnd = requestLine.indexOf(' ')
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.1K bytes
    - Click Count (0)
  7. src/test/java/jcifs/smb/SIDTest.java

                byte[] ident = new byte[] { 0, 0, 0, 0, 0, 5 };
                SID domain = new SID(buildSidT((byte) 1, ident, 10, 20), jcifs.SID.SID_TYPE_DOMAIN, "DOM", null, false);
                IllegalArgumentException ex = assertThrows(IllegalArgumentException.class, domain::getRid);
                assertTrue(ex.getMessage().contains("domain sid"));
            }
    
            @Test
            @DisplayName("Static toByteArray null input throws NPE")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/collect/CartesianList.java

        try {
          for (int i = axes.size() - 1; i >= 0; i--) {
            axesSizeProduct[i] = Math.multiplyExact(axesSizeProduct[i + 1], axes.get(i).size());
          }
        } catch (ArithmeticException e) {
          throw new IllegalArgumentException(
              "Cartesian product too large; must have size at most Integer.MAX_VALUE");
        }
        this.axesSizeProduct = axesSizeProduct;
      }
    
      private int getAxisIndexForProductIndex(int index, int axis) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Aug 31 13:15:26 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/suggest/settings/BadWordSettings.java

         * @param badWord Bad word
         */
        public void add(final String badWord) {
            final String validationError = getValidationError(badWord);
            if (validationError != null) {
                throw new IllegalArgumentException("Validation error: " + validationError);
            }
    
            if (logger.isDebugEnabled()) {
                logger.debug("Adding bad word: index={}, word={}", arraySettings.arraySettingsIndexName, badWord);
            }
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Nov 23 03:02:17 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/features/CollectionFeature.java

       * Object#toString}.
       */
      NON_STANDARD_TOSTRING,
    
      /**
       * Indicates that the constructor or factory method of a collection, usually an immutable set,
       * throws an {@link IllegalArgumentException} when presented with duplicate elements instead of
       * collapsing them to a single element or including duplicate instances in the collection.
       */
      REJECTS_DUPLICATES_AT_CREATION,
    
      SUPPORTS_ADD,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Oct 30 16:15:19 GMT 2024
    - 4.1K bytes
    - Click Count (0)
Back to Top