- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 358 for RuntimeException (0.07 sec)
-
src/test/java/jcifs/util/transport/RequestTimeoutExceptionTest.java
} @Test void testCauseConstructor() { // Test the constructor with a cause argument Throwable cause = new RuntimeException("Root cause"); RequestTimeoutException exception = new RequestTimeoutException(cause); assertEquals("java.lang.RuntimeException: Root cause", exception.getMessage(), "Message should be derived from the cause");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.4K bytes - Viewed (0) -
src/test/java/jcifs/pac/PACDecodingExceptionTest.java
assertNull(e.getCause()); } /** * Test the constructor with a cause. */ @Test void testCauseConstructor() { Throwable cause = new RuntimeException("Root cause"); PACDecodingException e = new PACDecodingException(cause); // When constructed with only a cause, the implementation passes (null, cause) to super
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java
} private static <T> void testExceptionPropagation( Class<T> interfaceType, Method method, Function<? super T, ? extends T> wrapperFunction) { RuntimeException exception = new RuntimeException(); T proxy = Reflection.newProxy( interfaceType, new AbstractInvocationHandler() { @Override
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 9.1K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/ExecutionListBenchmark.java
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 15.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/FutureCallbackTest.java
public void testRuntimeExceptionFromGet() { RuntimeException e = new IllegalArgumentException("foo not found"); ListenableFuture<String> f = UncheckedThrowingFuture.throwingRuntimeException(e); MockCallback callback = new MockCallback(e); addCallback(f, callback, directExecutor()); } public void testOnSuccessThrowsRuntimeException() throws Exception { RuntimeException exception = new RuntimeException();
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 6.7K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleModuleBuilder.java
new ProjectExecutionEvent(session, currentProject, t)); // rethrow original errors and runtime exceptions if (t instanceof RuntimeException runtimeException) { throw runtimeException; } if (t instanceof Error error) { throw error; } } finally { session.setCurrentProject(null);
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jun 06 20:01:00 UTC 2025 - 5.5K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginRealmCache.java
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 7.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/TestExceptions.java
static final class YetAnotherCheckedException extends Exception {} static final class SomeUncheckedException extends RuntimeException {} static final class SomeChainingException extends RuntimeException { public SomeChainingException(Throwable cause) { super(cause); } } private TestExceptions() {}Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 1.3K bytes - Viewed (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/DocGenerationException.java
* limitations under the License. */ package gradlebuild.docs; import org.gradle.internal.exceptions.Contextual; @Contextual public class DocGenerationException extends RuntimeException { public DocGenerationException(String message) { super(message); } public DocGenerationException(String message, Throwable throwable) { super(message, throwable); }Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 968 bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java
taskResult.setException(error); } }; Thread runner = new Thread(task); runner.start(); isInterruptibleRegistered.await(); RuntimeException expected = assertThrows(RuntimeException.class, () -> task.interruptTask()); assertThat(expected) .hasMessageThat() .isEqualTo("I bet you didn't think Thread.interrupt could throw"); /*
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 7.1K bytes - Viewed (0)