- Sort Score
- Num 10 results
- Language All
Results 91 - 100 of 1,226 for threw (0.04 seconds)
-
okhttp/src/androidMain/kotlin/okhttp3/internal/platform/AndroidPlatform.kt
// On android 8.0, socket.connect throws a ClassCastException due to a bug // see https://issuetracker.google.com/issues/63649622 if (Build.VERSION.SDK_INT == 26) { throw IOException("Exception in connect", e) } else { throw e } } } override fun newSSLContext(): SSLContext { StrictMode.noteSlowCall("newSSLContext") return super.newSSLContext() }Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Oct 10 05:19:46 GMT 2025 - 6.5K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinder.kt
override fun find(): RealConnection { var firstException: IOException? = null try { while (tcpConnectsInFlight.isNotEmpty() || routePlanner.hasNext()) { if (routePlanner.isCanceled()) throw IOException("Canceled") // Launch a new connection if we're ready to. val now = taskRunner.backend.nanoTime() var awaitTimeoutNanos = nextTcpConnectAtNanos - now
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 5.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/eventbus/SubscriberRegistryTest.java
registry.register(o1); Iterator<Subscriber> three = registry.getSubscribers(""); assertEquals(s1, one.next().target); assertFalse(one.hasNext()); assertEquals(s1, three.next().target); assertEquals(s2, three.next().target); assertEquals(o1, three.next().target); assertFalse(three.hasNext()); three = registry.getSubscribers(""); registry.unregister(s2);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 5.8K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraph.java
private static void checkVertex(MetadataGraphVertex v) throws MetadataResolutionException { if (v == null) { throw new MetadataResolutionException("null vertex"); } if (v.getMd() == null) { throw new MetadataResolutionException("vertex without metadata"); } } // ------------------------------------------------------------------------
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Jul 23 17:27:08 GMT 2025 - 13K bytes - Click Count (0) -
guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java
public T next() { try { return iterator.next(); } catch (NoSuchElementException e) { nextThrewException = true; throw e; } } @Override public void remove() { if (nextThrewException) { throw new IllegalStateException(); } iterator.remove(); } } public void testCanCatchJdkBug6529795InTargetIterator() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Aug 06 18:32:41 GMT 2025 - 10.3K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java
public boolean addAll(Collection<? extends E> elementsToAdd) { throw up(); } @Override public boolean removeAll(Collection<?> elementsToRemove) { throw up(); } @Override public boolean retainAll(Collection<?> elementsToRetain) { throw up(); } @Override public void clear() { throw up(); } private static UnsupportedOperationException up() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 3.8K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/CacheResponse.java
.url("http://publicobject.com/helloworld.txt") .build(); String response1Body; try (Response response1 = client.newCall(request).execute()) { if (!response1.isSuccessful()) throw new IOException("Unexpected code " + response1); response1Body = response1.body().string(); System.out.println("Response 1 response: " + response1);
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun May 22 01:29:42 GMT 2016 - 2.4K bytes - Click Count (0) -
compat/maven-settings/src/main/java/org/apache/maven/settings/io/xpp3/SettingsXpp3Writer.java
*/ public void write(Writer writer, Settings settings) throws IOException { try { delegate.write(writer, settings.getDelegate()); } catch (XMLStreamException e) { throw new IOException("Error writing settings to " + writer, e); } } /** * Method write. * * @param stream a stream object. * @param settings a settings object.Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Feb 25 08:27:34 GMT 2025 - 2.5K bytes - Click Count (0) -
guava/src/com/google/common/collect/Iterables.java
* Objects.equals(o, element)} would return {@code true}. Otherwise returns {@code false}, even in * cases where {@link Collection#contains} might throw {@link NullPointerException} or {@link * ClassCastException}. */ public static boolean contains(Iterable<?> iterable, @Nullable Object element) { if (iterable instanceof Collection) {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Nov 17 22:50:48 GMT 2025 - 43.6K bytes - Click Count (0) -
guava/src/com/google/common/util/concurrent/MoreExecutors.java
ee = eex; } catch (InterruptedException iex) { throw iex; } catch (Exception rex) { // sneaky checked exception ee = new ExecutionException(rex); } } } if (ee == null) { ee = new ExecutionException(null); } throw ee; } finally { for (Future<T> f : futures) { f.cancel(true);Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Oct 08 18:55:33 GMT 2025 - 45.2K bytes - Click Count (0)