Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for getThrown (0.06 sec)

  1. android/guava-testlib/test/com/google/common/testing/TestLogHandlerTest.java

        ExampleClassUnderTest.foo();
        LogRecord record = handler.getStoredLogRecords().get(0);
        assertEquals(Level.INFO, record.getLevel());
        assertEquals("message", record.getMessage());
        assertSame(EXCEPTION, record.getThrown());
      }
    
      public void testConcurrentModification() throws Exception {
        // Tests for the absence of a bug where logging while iterating over the
        // stored log records causes a ConcurrentModificationException
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        List<LogRecord> logRecords = logHandler.getStoredLogRecords();
        assertThat(logRecords).hasSize(1);
        LogRecord logRecord = logRecords.get(0);
        logHandler.clear();
        return logRecord.getThrown();
      }
    
      private void checkNothingLogged() {
        assertThat(logHandler.getStoredLogRecords().isEmpty()).isTrue();
      }
    
      private void checkLogged(Throwable t) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 12 00:25:21 UTC 2025
    - 115.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        List<LogRecord> logRecords = logHandler.getStoredLogRecords();
        assertThat(logRecords).hasSize(1);
        LogRecord logRecord = logRecords.get(0);
        logHandler.clear();
        return logRecord.getThrown();
      }
    
      private void checkNothingLogged() {
        assertThat(logHandler.getStoredLogRecords().isEmpty()).isTrue();
      }
    
      private void checkLogged(Throwable t) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 12 00:25:21 UTC 2025
    - 117.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        List<LogRecord> logRecords = logHandler.getStoredLogRecords();
        assertThat(logRecords).hasSize(1);
        LogRecord logRecord = logRecords.get(0);
        logHandler.clear();
        return logRecord.getThrown();
      }
    
      private void checkNothingLogged() {
        assertThat(logHandler.getStoredLogRecords()).isEmpty();
      }
    
      private void checkLoggedCause(Throwable t) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 91.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        List<LogRecord> logRecords = logHandler.getStoredLogRecords();
        assertThat(logRecords).hasSize(1);
        LogRecord logRecord = logRecords.get(0);
        logHandler.clear();
        return logRecord.getThrown();
      }
    
      private void checkNothingLogged() {
        assertThat(logHandler.getStoredLogRecords()).isEmpty();
      }
    
      private void checkLoggedCause(Throwable t) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 91.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/io/Closer.java

          stack.addFirst(closeable);
        }
    
        return closeable;
      }
    
      /**
       * Stores the given throwable and rethrows it. It will be rethrown as is if it is an {@code
       * IOException}, {@code RuntimeException} or {@code Error}. Otherwise, it will be rethrown wrapped
       * in a {@code RuntimeException}. <b>Note:</b> Be sure to declare all of the checked exception
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilJvm.kt

      try {
        close()
      } catch (e: AssertionError) {
        throw e
      } catch (rethrown: RuntimeException) {
        if (rethrown.message == "bio == null") {
          // Conscrypt in Android 10 and 11 may throw closing an SSLSocket. This is safe to ignore.
          // https://issuetracker.google.com/issues/177450597
          return
        }
        throw rethrown
      } catch (_: Exception) {
      }
    }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 10.2K bytes
    - Viewed (1)
  8. src/main/java/org/codelibs/core/io/CloseableUtil.java

        /**
         * Closes a {@link Closeable}.
         * <p>
         * If an exception is thrown by {@link Closeable#close()}, an error message is logged. The exception is not rethrown. This prevents the original exception from being lost in situations like the following:
         * </p>
         * <pre>
         * InputStream is = ...;
         * try {
         *   is.read(...);
         * } finally {
         *   close(is);
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/sql/ResultSetUtil.java

         */
        protected ResultSetUtil() {
        }
    
        /**
         * Closes the result set.
         * <p>
         * If {@link ResultSet#close()} throws an exception, an error message is logged. The exception is not rethrown.
         * </p>
         *
         * @param resultSet
         *            The result set
         */
        public static void close(final ResultSet resultSet) {
            if (resultSet == null) {
                return;
            }
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilCommon.kt

        return defaultValue
      }
    }
    
    /** Closes this, ignoring any checked exceptions. */
    fun Closeable.closeQuietly() {
      try {
        close()
      } catch (rethrown: RuntimeException) {
        throw rethrown
      } catch (_: Exception) {
      }
    }
    
    /**
     * Returns true if file streams can be manipulated independently of their paths. This is typically
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 10.1K bytes
    - Viewed (0)
Back to top