Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 311 - 320 of 1,188 for Exception (0.06 seconds)

  1. samples/guide/src/main/java/okhttp3/recipes/ConfigureTimeouts.java

      private final OkHttpClient client;
    
      public ConfigureTimeouts() throws Exception {
        client = new OkHttpClient.Builder()
            .connectTimeout(5, TimeUnit.SECONDS)
            .writeTimeout(5, TimeUnit.SECONDS)
            .readTimeout(5, TimeUnit.SECONDS)
            .callTimeout(10, TimeUnit.SECONDS)
            .build();
      }
    
      public void run() throws Exception {
        Request request = new Request.Builder()
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Sep 28 18:00:26 GMT 2019
    - 1.5K bytes
    - Click Count (0)
  2. impl/maven-core/src/main/java/org/apache/maven/logging/BuildEventListener.java

        void projectFinished(String projectId);
    
        void executionFailure(String projectId, boolean halted, String exception);
    
        void mojoStarted(ExecutionEvent event);
    
        void finish(int exitCode) throws Exception;
    
        void fail(Throwable t) throws Exception;
    
        void log(String msg);
    
        void transfer(String projectId, TransferEvent e);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 1.5K bytes
    - Click Count (0)
  3. android/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)
  4. android/guava-tests/test/com/google/common/util/concurrent/ExecutionListTest.java

     * @author Sven Mawson
     */
    @NullUnmarked
    public class ExecutionListTest extends TestCase {
    
      private final ExecutionList list = new ExecutionList();
    
      public void testRunOnPopulatedList() throws Exception {
        Executor exec = newCachedThreadPool();
        CountDownLatch countDownLatch = new CountDownLatch(3);
        list.add(new MockRunnable(countDownLatch), exec);
        list.add(new MockRunnable(countDownLatch), exec);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Jul 11 18:52:30 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  5. 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)
  6. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/singlethreaded/SingleThreadedBuilder.java

                        if (reactorBuildStatus.isHalted()) {
                            break;
                        }
                    } catch (Exception e) {
                        break; // Why are we just ignoring this exception? Are exceptions are being used for flow control
                    }
                }
            }
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  7. impl/maven-core/src/main/java/org/apache/maven/lifecycle/NoGoalSpecifiedException.java

     * under the License.
     */
    package org.apache.maven.lifecycle;
    
    /**
     * Signals a failure to build because no goal was specified.
     *
     */
    public class NoGoalSpecifiedException extends Exception {
    
        /**
         * Creates a new exception.
         *
         * @param message The detail message, may be {@code null}.
         */
        public NoGoalSpecifiedException(String message) {
            super(message);
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 1.2K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/collect/QueuesTest.java

          assertEquals(100, buf.size());
          assertDrained(q);
        }
      }
    
      public void testDrainTimesOut() throws Exception {
        for (BlockingQueue<Object> q : blockingQueues()) {
          checkDrainTimesOut(q);
        }
      }
    
      private void checkDrainTimesOut(BlockingQueue<Object> q) throws Exception {
        for (boolean interruptibly : new boolean[] {true, false}) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Nov 04 17:24:58 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  9. compat/maven-compat/src/test/java/org/apache/maven/repository/LegacyRepositorySystemTest.java

        }
    
        protected ArtifactRepository getLocalRepository() throws Exception {
            File repoDir = new File(getBasedir(), "target/local-repo").getAbsoluteFile();
    
            return repositorySystem.createLocalRepository(repoDir);
        }
    
        @Test
        void testThatASystemScopedDependencyIsNotResolvedFromRepositories() throws Exception {
            //
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Dec 16 13:41:14 GMT 2025
    - 11.1K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/Streams.java

        Exception exception = null;
        for (BaseStream<?, ?> stream : toClose) {
          try {
            stream.close();
          } catch (Exception e) { // sneaky checked exception
            if (exception == null) {
              exception = e;
            } else {
              exception.addSuppressed(e);
            }
          }
        }
        if (exception != null) {
          // Normally this is a RuntimeException that doesn't need sneakyThrow.
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 36.4K bytes
    - Click Count (0)
Back to Top