Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 124 for exceptions (0.22 sec)

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

     * includes both natural exceptions such as unreachable servers, as well as synthetic exceptions
     * when responses are of an unexpected type or cannot be decoded.
     *
     * Other exception types cancel the current call:
     *
     *  * For synchronous calls made with [Call.execute], the exception is propagated to the caller.
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/TestUtilJvm.kt

      @JvmStatic
      val windows: Boolean
        get() = System.getProperty("os.name", "?").startsWith("Windows")
    
      /**
       * Make assertions about the suppressed exceptions on this. Prefer this over making direct calls
       * so tests pass on GraalVM, where suppressed exceptions are silently discarded.
       *
       * https://github.com/oracle/graal/issues/3008
       */
      @JvmStatic
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  3. docs/changelogs/changelog_4x.md

        scheduling. In your debugger you will see new thread names and more use of daemon threads.
    
     *  Fix: Don't drop callbacks on unexpected exceptions. When an interceptor throws an unchecked
        exception the callback is now notified that the call was canceled. The exception is still sent
        to the uncaught exception handler for reporting and recovery.
    
     *  Fix: Un-deprecate `MockResponse.setHeaders()` and other setters. These were deprecated in OkHttp
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/EventListener.kt

     * multiple routes to be attempted simultaneously.
     *
     * Events and sequences of events may be repeated for retries and follow-ups.
     *
     * All event methods must execute fast, without external locking, cannot throw exceptions, attempt
     * to mutate the event parameters, or be re-entrant back into the client. Any IO - writing to files
     * or network should be done asynchronously.
     */
    abstract class EventListener {
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/ws/WebSocketWriterTest.kt

    class WebSocketWriterTest {
      private val data = Buffer()
      private val random = Random(0)
    
      /**
       * Check all data as verified inside of the test. We do this in an AfterEachCallback so that
       * exceptions thrown from the test do not cause this check to fail.
       */
      @RegisterExtension
      val noDataLeftBehind =
        AfterEachCallback { context: ExtensionContext ->
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

       *
       * If there are I/O problems during iteration, this iterator fails silently. For example, if the
       * hosting filesystem becomes unreachable, the iterator will omit elements rather than throwing
       * exceptions.
       *
       * **The caller must [close][Snapshot.close]** each snapshot returned by [Iterator.next]. Failing
       * to do so leaks open files!
       */
      @Synchronized
      @Throws(IOException::class)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/CacheTest.kt

        assertThat(response2.handshake!!.cipherSuite).isEqualTo(
          response1.handshake!!.cipherSuite,
        )
      }
    
      /**
       * We've had bugs where caching and cross-protocol redirects yield class cast exceptions internal
       * to the cache because we incorrectly assumed that HttpsURLConnection was always HTTPS and
       * HttpURLConnection was always HTTP; in practice redirects mean that each can do either.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

        assertInvalid("http://\uDBFF\uDFFF", "Invalid URL host: \"\uDBFF\uDFFF\"")
      }
    
      @Test
      fun hostnameUri() {
        // Host names are special:
        //
        //  * Several characters are forbidden and must throw exceptions if used.
        //  * They don't use percent escaping at all.
        //  * They use punycode for internationalization.
        //  * URI is much more strict than HttpUrl or URL on what's accepted.
        //
    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. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        assertFailsWith<UnsupportedOperationException> {
          client.newBuilder()
            .sslSocketFactory(handshakeCertificates.sslSocketFactory())
        }
      }
    
      /** Confirm that runtime exceptions thrown inside of OkHttp propagate to the caller.  */
      @Test
      fun unexpectedExceptionSync() {
        client =
          client.newBuilder()
            .dns { hostname: String? -> throw RuntimeException("boom!") }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabase.kt

                domainLabelsUtf8Bytes,
                labelIndex,
              )
            if (rule != null) {
              exception = rule
              break
            }
          }
        }
    
        if (exception != null) {
          // Signal we've identified an exception rule.
          exception = "!$exception"
          return exception.split('.')
        } else if (exactMatch == null && wildcardMatch == null) {
          return PREVAILING_RULE
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.7K bytes
    - Viewed (0)
Back to top