- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 392 for catch (0.16 sec)
-
okhttp/src/test/java/okhttp3/OkHttpClientTest.kt
} catch (ignored: IllegalArgumentException) { } try { builder.connectTimeout(Duration.ofNanos(1)) } catch (ignored: IllegalArgumentException) { } try { builder.writeTimeout(Duration.ofNanos(1)) } catch (ignored: IllegalArgumentException) { } try { builder.readTimeout(Duration.ofNanos(1)) } catch (ignored: IllegalArgumentException) { }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Mar 31 17:16:15 GMT 2024 - 13.2K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/Certificates.kt
) return certificates.single() as X509Certificate } catch (nsee: NoSuchElementException) { throw IllegalArgumentException("failed to decode certificate", nsee) } catch (iae: IllegalArgumentException) { throw IllegalArgumentException("failed to decode certificate", iae) } catch (e: GeneralSecurityException) { throw IllegalArgumentException("failed to decode certificate", e) } }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.8K bytes - Viewed (2) -
okhttp/src/main/kotlin/okhttp3/internal/platform/ConscryptPlatform.kt
else -> false } } catch (e: NoClassDefFoundError) { false } catch (e: ClassNotFoundException) { false } fun buildIfSupported(): ConscryptPlatform? = if (isSupported) ConscryptPlatform() else null fun atLeastVersion( major: Int, minor: Int = 0, patch: Int = 0, ): Boolean {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 4.6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt
} try { trimToSize() } catch (_: IOException) { mostRecentTrimFailed = true } try { if (journalRebuildRequired()) { rebuildJournal() redundantOpCount = 0 } } catch (_: IOException) { mostRecentRebuildFailed = true
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) -
okhttp/src/main/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabase.kt
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) -
okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt
invocationContext: ReflectiveInvocationContext<Method>, extensionContext: ExtensionContext, ) { var failed = false try { invocation.proceed() } catch (e: TestAbortedException) { throw e } catch (e: Throwable) { failed = true rethrowIfNotExpected(e) } finally { resetPlatform() } if (!failed) { failIfExpected() }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 15.3K bytes - Viewed (0) -
okhttp-coroutines/src/test/kotlin/okhttp3/coroutines/ExecuteAsyncTest.kt
call.executeAsync().use { withContext(Dispatchers.IO) { it.body.string() } fail("No expected to get response") } } } catch (to: TimeoutCancellationException) { // expected } assertThat(call.isCanceled()).isTrue() } } @Test fun cancelledCall() { runTest { server.enqueue(
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Apr 18 01:24:38 GMT 2024 - 5.4K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt
taskRunner.newQueue().execute("MockWebServer ${raw.remoteSocketAddress}", cancelable = false) { try { SocketHandler(raw).handle() } catch (e: IOException) { logger.fine("$this connection from ${raw.inetAddress} failed: $e") } catch (e: Exception) { logger.log(Level.SEVERE, "$this connection from ${raw.inetAddress} crashed", e) } } }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Mar 31 17:16:15 GMT 2024 - 37.4K bytes - Viewed (0) -
mockwebserver/src/test/java/mockwebserver3/CustomDispatcherTest.kt
val secondResponseCode = AtomicInteger() val secondRequest = "/bar" val firstRequest = "/foo" val latch = CountDownLatch(1) val dispatcher: Dispatcher = object : Dispatcher() { override fun dispatch(request: RecordedRequest): MockResponse { if (request.path == firstRequest) { latch.await() } return MockResponse() } }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.3K bytes - Viewed (0) -
mockwebserver-junit4/src/test/java/mockwebserver3/junit4/MockWebServerRuleTest.kt
}, Description.EMPTY, ) statement.evaluate() assertThat(called.get()).isTrue() try { rule.server.url("/").toUrl().openConnection().connect() fail() } catch (expected: ConnectException) { } }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.5K bytes - Viewed (1)