Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for IllegalArgumentException (0.15 sec)

  1. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

      @Test
      fun requestHeaderValidationIsStrict() {
        assertFailsWith<IllegalArgumentException> {
          Request.Builder()
            .addHeader("a\tb", "Value")
        }
        assertFailsWith<IllegalArgumentException> {
          Request.Builder()
            .addHeader("Name", "c\u007fd")
        }
        assertFailsWith<IllegalArgumentException> {
          Request.Builder()
            .addHeader("", "Value")
        }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Maps.java

          V value = values.next();
          builder.put(keyFunction.apply(value), value);
        }
        try {
          return builder.buildOrThrow();
        } catch (IllegalArgumentException duplicateKeys) {
          throw new IllegalArgumentException(
              duplicateKeys.getMessage()
                  + ". To index multiple values under a key, use Multimaps.index.");
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 161.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Maps.java

          V value = values.next();
          builder.put(keyFunction.apply(value), value);
        }
        try {
          return builder.buildOrThrow();
        } catch (IllegalArgumentException duplicateKeys) {
          throw new IllegalArgumentException(
              duplicateKeys.getMessage()
                  + ". To index multiple values under a key, use Multimaps.index.");
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/CallTest.kt

        assertFailsWith<IllegalArgumentException> {
          requestBuilder.url("ftp://hostname/path")
        }.also { expected ->
          assertThat(expected.message).isEqualTo("Expected URL scheme 'http' or 'https' but was 'ftp'")
        }
      }
    
      @Test
      fun invalidPort() {
        val requestBuilder = Request.Builder()
        assertFailsWith<IllegalArgumentException> {
          requestBuilder.url("http://localhost:65536/")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

         *
         * @throws ExecutionException if {@code closingFuture} is a failed step
         * @throws CancellationException if the {@code closingFuture}'s future was cancelled
         * @throws IllegalArgumentException if {@code closingFuture} is not one of the futures passed to
         *     {@link #whenAllComplete(Iterable)} or {@link #whenAllComplete(Iterable)}
         * @throws IllegalStateException if called outside of a call to {@link
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 08 19:36:35 UTC 2024
    - 98.5K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/mylasta/action/FessLabels.java

         */
        protected void assertPropertyNotNull(String property) {
            if (property == null) {
                String msg = "The argument 'property' for message should not be null.";
                throw new IllegalArgumentException(msg);
            }
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Mar 22 11:58:34 UTC 2024
    - 146.4K bytes
    - Viewed (0)
Back to top