Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. okhttp/src/jvmTest/kotlin/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()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 133.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbFile.java

            if (dest == null) {
                throw new IllegalArgumentException("Destination cannot be null");
            }
            if (b == null || b.length == 0) {
                throw new IllegalArgumentException("Buffer array cannot be null or empty");
            }
            if (bsize <= 0) {
                throw new IllegalArgumentException("Buffer size must be positive");
            }
    
            try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 146.6K bytes
    - Viewed (0)
  4. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 23 15:26:56 UTC 2025
    - 97.8K bytes
    - Viewed (0)
  5. 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 Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 05 02:36:47 UTC 2025
    - 146.4K bytes
    - Viewed (0)
  6. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 23 15:26:56 UTC 2025
    - 98.1K bytes
    - Viewed (0)
Back to top