- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 24 for setThrown (0.13 seconds)
-
src/test/java/org/codelibs/fess/util/LogNotificationAppenderTest.java
.setLoggerName("org.codelibs.fess.test") // .setLevel(Level.ERROR) // .setMessage(new SimpleMessage("test error")) // .setThrown(new RuntimeException("test exception")) // .setTimeMillis(System.currentTimeMillis()) // .build(); appender.append(event);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 14:36:23 GMT 2026 - 10.7K bytes - Click Count (0) -
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
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 29 22:14:05 GMT 2026 - 10.3K bytes - Click Count (0) -
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) { } }Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 10.3K bytes - Click Count (1) -
guava-tests/test/com/google/common/io/FlushablesTest.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jul 16 20:34:52 GMT 2025 - 3.3K bytes - Click Count (0) -
guava-testlib/test/com/google/common/testing/TestLogHandlerTest.java
ExampleClassUnderTest.foo(); LogRecord record = handler.getStoredLogRecords().get(0); assertEquals(Level.INFO, record.getLevel()); assertThat(record.getMessage()).isEqualTo("message"); assertThat(record.getThrown()).isEqualTo(EXCEPTION); } public void testConcurrentModification() throws Exception { // Tests for the absence of a bug where logging while iterating over the
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 2.9K bytes - Click Count (0) -
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; }Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 2.9K bytes - Click Count (0) -
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);Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 2.5K bytes - Click Count (0) -
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
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon May 05 16:01:00 GMT 2025 - 10.1K bytes - Click Count (0) -
android/guava-testlib/test/com/google/common/testing/TestLogHandlerTest.java
ExampleClassUnderTest.foo(); LogRecord record = handler.getStoredLogRecords().get(0); assertEquals(Level.INFO, record.getLevel()); assertThat(record.getMessage()).isEqualTo("message"); assertThat(record.getThrown()).isEqualTo(EXCEPTION); } public void testConcurrentModification() throws Exception { // Tests for the absence of a bug where logging while iterating over the
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 2.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/FlushablesTest.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jul 16 20:34:52 GMT 2025 - 3.3K bytes - Click Count (0)