Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for getThrown (0.04 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  2. 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: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/sql/StatementUtil.java

            }
        }
    
        /**
         * Closes the {@link Statement}.
         * <p>
         * If {@link Statement#close()} throws an exception, an error message is logged. The exception is not rethrown.
         * </p>
         *
         * @param statement
         *            {@link Statement}
         * @see Statement#close()
         */
        public static void close(final Statement statement) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/zip/ZipInputStreamUtil.java

            }
        }
    
        /**
         * Closes the {@link ZipInputStream}.
         * <p>
         * If {@link ZipInputStream#closeEntry()} throws an exception, an error message is logged.
         * The exception is not rethrown.
         * </p>
         *
         * @param zis
         *            {@link ZipInputStream}. Must not be {@literal null}.
         * @see ZipInputStream#closeEntry()
         */
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  5. 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: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/CloseablesTest.java

      private void setupCloseable(boolean shouldThrow) throws IOException {
        mockCloseable = mock(Closeable.class);
        if (shouldThrow) {
          doThrow(new IOException("This should only appear in the logs. It should not be rethrown."))
              .when(mockCloseable)
              .close();
        }
      }
    
      private void doClose(Closeable closeable, boolean swallowException) throws IOException {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/zip/ZipFileUtil.java

            return FileUtil.getCanonicalPath(zipFile);
        }
    
        /**
         * Closes the Zip file.
         * <p>
         * If {@link ZipFile#close()} throws an exception, an error message is logged. The exception is not rethrown.
         * </p>
         *
         * @param zipFile
         *            Zip file. Must not be {@literal null}.
         */
        public static void close(final ZipFile zipFile) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 4.7K bytes
    - Viewed (0)
Back to top