- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 358 for RuntimeException (0.53 sec)
-
src/test/java/org/codelibs/curl/CurlExceptionTest.java
} @Test public void testExceptionChaining() { IOException rootCause = new IOException("Root cause"); RuntimeException intermediateCause = new RuntimeException("Intermediate", rootCause); CurlException exception = new CurlException("Final message", intermediateCause); assertEquals("Final message", exception.getMessage());Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Thu Jul 31 01:01:12 UTC 2025 - 4.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/concurrent/TaskRunnerRealBackendTest.kt
assertThat(t3).isCloseTo(1750.0, 250.0) } @Test fun taskFailsWithUncheckedException() { queue.schedule("task", TimeUnit.MILLISECONDS.toNanos(100)) { log.put("failing task running") throw RuntimeException("boom!") } queue.schedule("task", TimeUnit.MILLISECONDS.toNanos(200)) { log.put("normal task running") return@schedule -1L } queue.idleLatch().await(500, TimeUnit.MILLISECONDS)
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 3.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CloserTest.java
} public void testRuntimeExceptions() throws IOException { Closer closer = new Closer(suppressor); RuntimeException tryException = new RuntimeException(); RuntimeException c1Exception = new RuntimeException(); RuntimeException c2Exception = new RuntimeException(); TestCloseable c1 = closer.register(TestCloseable.throwsOnClose(c1Exception));
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 11.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/UncheckedThrowingFuture.java
public static <V> ListenableFuture<V> throwingRuntimeException(RuntimeException e) { UncheckedThrowingFuture<V> future = new UncheckedThrowingFuture<V>(); future.complete(checkNotNull(e)); return future; } public static <V> UncheckedThrowingFuture<V> incomplete() { return new UncheckedThrowingFuture<V>(); } public void complete(RuntimeException e) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 3.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/GcFinalization.java
awaitClear(ref); // Hope to catch some stragglers queued up behind our finalizable object System.runFinalization(); } private static RuntimeException formatRuntimeException(String format, Object... args) { return new RuntimeException(String.format(Locale.ROOT, format, args)); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 11.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CloserTest.java
} public void testRuntimeExceptions() throws IOException { Closer closer = new Closer(suppressor); RuntimeException tryException = new RuntimeException(); RuntimeException c1Exception = new RuntimeException(); RuntimeException c2Exception = new RuntimeException(); TestCloseable c1 = closer.register(TestCloseable.throwsOnClose(c1Exception));
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 11.8K bytes - Viewed (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/ClassDocPropertiesBuilder.java
throw new RuntimeException(String.format("Expected %s <td> elements in <tr>, found: %s", header.size(), tr)); } String propName = cells.get(0).getTextContent().trim(); PropertyMetaData property = classDoc.getClassMetaData().findProperty(propName); if (property == null) {
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 6.2K bytes - Viewed (0) -
src/test/java/jcifs/EmptyIteratorTest.java
// When & Then assertDoesNotThrow(() -> { try { emptyIterator.close(); } catch (CIFSException e) { throw new RuntimeException(e); } }, "close() should not throw any exception"); } @Test @DisplayName("remove should not throw any exception") void testRemoveDoesNotThrowException() {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/CurlException.java
* This class extends {@link RuntimeException} and provides constructors * to create an exception instance with a message and an optional cause. * * <p>Usage examples:</p> * <pre> * throw new CurlException("Error message"); * throw new CurlException("Error message", cause); * </pre> * * @see RuntimeException */ public class CurlException extends RuntimeException {Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Sat Jul 05 01:38:18 UTC 2025 - 2K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/interval/impl/AbstractIntervalControllerTest.java
if (shouldThrowException) { throw new RuntimeException("Test exception in delayBeforeProcessing"); } } @Override protected void delayAfterProcessing() { afterProcessingCount++; if (shouldThrowException) { throw new RuntimeException("Test exception in delayAfterProcessing"); } }
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Nov 20 08:58:39 UTC 2025 - 9.8K bytes - Viewed (0)