- Sort Score
- Num 10 results
- Language All
Results 251 - 260 of 1,783 for exception (0.29 seconds)
-
samples/guide/src/main/java/okhttp3/recipes/CurrentDateHeader.java
.addInterceptor(new CurrentDateInterceptor()) .build(); public void run() throws Exception { Request request = new Request.Builder() .url("https://publicobject.com/helloworld.txt") .build(); try (Response response = client.newCall(request).execute()) { System.out.println(response.request().header("Date")); } }
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Oct 31 15:32:50 GMT 2018 - 1.8K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/PostString.java
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat May 25 18:02:55 GMT 2019 - 1.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java
throws IOException { MyServerExampleWithFrq myServer = MyServerExampleWithFrq.create(finalizeReferentRan); assertThat(myServer.serverSocket.isClosed()).isFalse(); return myServer.serverSocket; } @Test public void testMyServerExampleWithFrq() throws Exception { AtomicBoolean finalizeReferentRan = new AtomicBoolean(false);Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 20:07:52 GMT 2025 - 8.7K bytes - Click Count (0) -
guava/src/com/google/common/util/concurrent/AbstractScheduledService.java
} catch (Throwable e) { // Any Exception is either a RuntimeException or sneaky checked exception. // // If an exception is thrown by the subclass then we need to make sure that the service // notices and transitions to the FAILED state. We do it by calling notifyFailed directly // because the service does not monitor the state of the future so if the exception is not
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 27.8K bytes - Click Count (0) -
guava/src/com/google/common/util/concurrent/FakeTimeLimiter.java
} @Override @SuppressWarnings("CatchingUnchecked") // sneaky checked exception public void runWithTimeout(Runnable runnable, long timeoutDuration, TimeUnit timeoutUnit) { checkNotNull(runnable); checkNotNull(timeoutUnit); try { runnable.run(); } catch (Exception e) { // sneaky checked exception throw new UncheckedExecutionException(e); } catch (Error e) {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 3.6K bytes - Click Count (0) -
impl/maven-core/src/test/java/org/apache/maven/graph/ProjectSelectorTest.java
final MavenExecutionException exception = assertThrows( MavenExecutionException.class, () -> sut.getRequiredProjectsBySelectors(mavenExecutionRequest, listOfProjects, selectors)); assertTrue(exception.getMessage().contains("Could not find")); assertTrue(exception.getMessage().contains(":required")); } @TestCreated: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 8.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java
assertThat(cache.getUnchecked(key)).isEqualTo(key + suffix); } static <T> Callable<T> throwing(Exception exception) { return new Callable<T>() { @Override public T call() throws Exception { throw exception; } }; }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 30 22:03:28 GMT 2025 - 91.1K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/util/concurrent/testing/AbstractListenableFutureTest.java
protected ListenableFuture<Boolean> future; @Override protected void setUp() throws Exception { // Create a latch and a future that waits on the latch. latch = new CountDownLatch(1); future = createListenableFuture(Boolean.TRUE, null, latch); } @Override protected void tearDown() throws Exception { // Make sure we have no waiting threads. latch.countDown(); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Jul 11 18:52:30 GMT 2025 - 6.1K bytes - Click Count (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java
result.setVersion(subResult.getVersion()); result.setRepository(subResult.getRepository()); for (Exception exception : subResult.getExceptions()) { result.addException(exception); } } } else { String key = SNAPSHOT + getKey(artifact.getClassifier(), artifact.getExtension());
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jan 10 08:42:00 GMT 2025 - 20.2K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/Authenticate.java
.build(); }) .build(); } public void run() throws Exception { Request request = new Request.Builder() .url("http://publicobject.com/secrets/hellosecret.txt") .build(); try (Response response = client.newCall(request).execute()) { if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); System.out.println(response.body().string()); }
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Aug 12 07:26:27 GMT 2021 - 1.9K bytes - Click Count (0)