Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 24 for IllegalStateException (0.3 sec)

  1. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

      private val sslSocketFactoryOrNull: SSLSocketFactory?
    
      @get:JvmName("sslSocketFactory")
      val sslSocketFactory: SSLSocketFactory
        get() = sslSocketFactoryOrNull ?: throw IllegalStateException("CLEARTEXT-only client")
    
      @get:JvmName("x509TrustManager")
      val x509TrustManager: X509TrustManager?
    
      @get:JvmName("connectionSpecs")
      val connectionSpecs: List<ConnectionSpec> =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/project/MavenProject.java

        }
    
        /**
         * @since 4.0.0
         * @return the rootDirectory for this project
         * @throws IllegalStateException if the rootDirectory cannot be found
         */
        public Path getRootDirectory() {
            if (rootDirectory == null) {
                throw new IllegalStateException(RootLocator.UNABLE_TO_FIND_ROOT_PROJECT_MESSAGE);
            }
            return rootDirectory;
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Mar 01 17:18:13 GMT 2024
    - 56.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/Futures.java

       * @throws IllegalStateException if the {@code Future} is not done
       * @since 20.0
       */
      @CanIgnoreReturnValue
      // TODO(cpovirk): Consider calling getDone() in our own code.
      @ParametricNullness
      public static <V extends @Nullable Object> V getDone(Future<V> future) throws ExecutionException {
        /*
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 59.6K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

      /**
       * When writing a set of headers fails due to an `IOException`, make sure the writer is left
       * in a consistent state so the next writer also gets an `IOException` also instead of
       * something worse (like an [IllegalStateException].
       *
       *
       * See https://github.com/square/okhttp/issues/1651
       */
      @Test fun socketExceptionWhileWritingHeaders() {
        peer.acceptFrame() // SYN_STREAM.
        peer.play()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 75.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Iterators.java

        }
    
        @Override
        public void remove() {
          checkRemove(false);
        }
      }
    
      /**
       * Returns the empty {@code Iterator} that throws {@link IllegalStateException} instead of {@link
       * UnsupportedOperationException} on a call to {@link Iterator#remove()}.
       */
      // Casting to any type is safe since there are no actual elements.
      @SuppressWarnings("unchecked")
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Iterators.java

        }
    
        @Override
        public void remove() {
          checkRemove(false);
        }
      }
    
      /**
       * Returns the empty {@code Iterator} that throws {@link IllegalStateException} instead of {@link
       * UnsupportedOperationException} on a call to {@link Iterator#remove()}.
       */
      // Casting to any type is safe since there are no actual elements.
      @SuppressWarnings("unchecked")
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 50.5K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

          return HttpUrl(
            scheme = scheme ?: throw IllegalStateException("scheme == null"),
            username = encodedUsername.percentDecode(),
            password = encodedPassword.percentDecode(),
            host = host ?: throw IllegalStateException("host == null"),
            port = effectivePort(),
            pathSegments = encodedPathSegments.map { it.percentDecode() },
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 63.5K bytes
    - Viewed (1)
  8. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

      }
    
      @Test
      fun incompleteUrlComposition() {
        val noHost =
          assertFailsWith<IllegalStateException> {
            HttpUrl.Builder().scheme("http").build()
          }
        assertThat(noHost.message).isEqualTo("host == null")
        val noScheme =
          assertFailsWith<IllegalStateException> {
            HttpUrl.Builder().host("host").build()
          }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 67.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableSortedMap.java

       * IllegalArgumentException} is thrown when the collection operation is performed. (This differs
       * from the {@code Collector} returned by {@link Collectors#toMap(Function, Function)}, which
       * throws an {@code IllegalStateException}.)
       *
       * @since 21.0
       */
      public static <T extends @Nullable Object, K, V>
          Collector<T, ?, ImmutableSortedMap<K, V>> toImmutableSortedMap(
              Comparator<? super K> comparator,
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 50.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

         * presumably because the ThrowingRunnable lambda triggers some kind of bug in Java 8's
         * reflection implementation.
         */
        try {
          new TypeToken<T>() {};
          fail();
        } catch (IllegalStateException expected) {
        }
      }
    
      public void testRawTypeIsCorrect() {
        TypeToken<List<String>> token = new TypeToken<List<String>>() {};
        assertEquals(List.class, token.getRawType());
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
Back to top