Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for uncaughtException (0.16 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt

          synchronized(clientEventsList) {
            clientEventsList.add(event)
          }
        }
      }
    
      @Synchronized private fun initUncaughtException(throwable: Throwable) {
        if (uncaughtException == null) {
          uncaughtException = throwable
        }
      }
    
      fun ensureAllConnectionsReleased() {
        testClient?.let {
          val connectionPool = it.connectionPool
    
          connectionPool.evictAll()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/UncaughtExceptionHandlers.java

        private final Runtime runtime;
    
        Exiter(Runtime runtime) {
          this.runtime = runtime;
        }
    
        @Override
        public void uncaughtException(Thread t, Throwable e) {
          try {
            logger
                .get()
                .log(
                    SEVERE,
                    String.format(Locale.ROOT, "Caught an exception in %s.  Shutting down.", t),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Dec 14 20:35:03 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/UncaughtExceptionHandlers.java

        private final Runtime runtime;
    
        Exiter(Runtime runtime) {
          this.runtime = runtime;
        }
    
        @Override
        public void uncaughtException(Thread t, Throwable e) {
          try {
            logger
                .get()
                .log(
                    SEVERE,
                    String.format(Locale.ROOT, "Caught an exception in %s.  Shutting down.", t),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Dec 14 20:35:03 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/UncaughtExceptionHandlersTest.java

      private Runtime runtimeMock;
    
      @Override
      protected void setUp() {
        runtimeMock = mock(Runtime.class);
      }
    
      public void testExiter() {
        new Exiter(runtimeMock).uncaughtException(new Thread(), new Exception());
        verify(runtimeMock).exit(1);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 09 22:57:07 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  5. okhttp-testing-support/src/test/kotlin/okhttp3/OkHttpClientTestRuleTest.kt

      @RegisterExtension @JvmField
      val beforeEachCallback =
        BeforeEachCallback { context ->
          ******@****.***ionContext = context
        }
    
      @Test fun uncaughtException() {
        val testRule = OkHttpClientTestRule()
        testRule.beforeEach(extensionContext)
    
        val thread =
          object : Thread() {
            override fun run() {
              throw RuntimeException("boom!")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java

              completed = true;
            }
          };
    
      private static final UncaughtExceptionHandler UNCAUGHT_EXCEPTION_HANDLER =
          new UncaughtExceptionHandler() {
            @Override
            public void uncaughtException(Thread t, Throwable e) {
              // No-op
            }
          };
    
      private ThreadFactoryBuilder builder;
      private volatile boolean completed = false;
    
      @Override
      public void setUp() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java

              completed = true;
            }
          };
    
      private static final UncaughtExceptionHandler UNCAUGHT_EXCEPTION_HANDLER =
          new UncaughtExceptionHandler() {
            @Override
            public void uncaughtException(Thread t, Throwable e) {
              // No-op
            }
          };
    
      private ThreadFactoryBuilder builder;
      private volatile boolean completed = false;
    
      @Override
      public void setUp() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

              executionThread = new Thread(command);
              executionThread.setUncaughtExceptionHandler(
                  new UncaughtExceptionHandler() {
                    @Override
                    public void uncaughtException(Thread thread, Throwable e) {
                      thrownByExecutionThread = e;
                    }
                  });
              executionThread.start();
            }
          };
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

                  doneSignal.countDown();
                }
              }
            };
        thread.setUncaughtExceptionHandler(
            new UncaughtExceptionHandler() {
              @Override
              public void uncaughtException(Thread t, Throwable e) {}
            });
        thread.start();
    
        boolean done = doneSignal.await(1, SECONDS);
        if (!done) {
          StringBuilder builder = new StringBuilder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

                  doneSignal.countDown();
                }
              }
            };
        thread.setUncaughtExceptionHandler(
            new UncaughtExceptionHandler() {
              @Override
              public void uncaughtException(Thread t, Throwable e) {}
            });
        thread.start();
    
        boolean done = doneSignal.await(1, SECONDS);
        if (!done) {
          StringBuilder builder = new StringBuilder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.4K bytes
    - Viewed (0)
Back to top