Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for IllegalStateException (0.3 sec)

  1. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

        assertFailsWith<IllegalStateException> {
          setString(0, "A")
        }
        assertFailsWith<IllegalStateException> {
          newSource(0)
        }
        assertFailsWith<IllegalStateException> {
          newSink(0)
        }
        assertFailsWith<IllegalStateException> {
          commit()
        }
        assertFailsWith<IllegalStateException> {
          abort()
        }
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 75.8K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  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. 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)
Back to top