- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 364 for RuntimeException (0.35 sec)
-
android/guava-tests/test/com/google/common/base/TestExceptions.java
static class SomeOtherCheckedException extends Exception {} static class YetAnotherCheckedException extends Exception {} static class SomeUncheckedException extends RuntimeException {} static class SomeChainingException extends RuntimeException { public SomeChainingException(Throwable cause) { super(cause); } } private TestExceptions() {}Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 1.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/LdapConfigurationExceptionTest.java
} } public void test_throwAndCatchAsRuntimeException() { // Test catching as RuntimeException String errorMessage = "LDAP search base is missing"; try { throw new LdapConfigurationException(errorMessage); } catch (RuntimeException e) { assertEquals(errorMessage, e.getMessage()); assertTrue(e instanceof LdapConfigurationException);Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 7.5K 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 Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 6.7K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/TimeLimiter.java
* @throws ExecutionException if {@code callable} throws a checked exception * @throws UncheckedExecutionException if {@code callable} throws a {@code RuntimeException} * @throws ExecutionError if {@code callable} throws an {@code Error} * @since 22.0 */ @CanIgnoreReturnValue @ParametricNullness <T extends @Nullable Object> T callWithTimeout(Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Jan 18 02:54:30 UTC 2025 - 8.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/LdapOperationExceptionTest.java
} public void test_nestedExceptions() { // Test nested exception handling Exception innerCause = new IllegalArgumentException("Invalid LDAP parameter"); RuntimeException middleCause = new RuntimeException("LDAP configuration error", innerCause); LdapOperationException exception = new LdapOperationException("LDAP operation failed", middleCause);Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 8.1K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java
CreateContextRequest request = mock(CreateContextRequest.class); byte[] buffer = new byte[100]; when(request.encode(any(byte[].class), anyInt())).thenThrow(new RuntimeException("Test error")); assertThrows(RuntimeException.class, () -> request.encode(buffer, 0)); } } @Nested @DisplayName("Test Implementation Tests") class TestImplementationTests {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/timer/MonitorTargetTest.java
StringBuilder buf = new StringBuilder(); Exception exception = new RuntimeException("Test error message"); monitorTarget.appendException(buf, exception); assertTrue(buf.toString().startsWith("\"exception\":\"")); assertTrue(buf.toString().contains("Test error message")); assertTrue(buf.toString().contains("RuntimeException")); } // Test appendException method with nested exception
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 11K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/TestExceptions.java
static class SomeOtherCheckedException extends Exception {} static class YetAnotherCheckedException extends Exception {} static class SomeUncheckedException extends RuntimeException {} static class SomeChainingException extends RuntimeException { public SomeChainingException(Throwable cause) { super(cause); } } private TestExceptions() {}Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 1.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/TestExceptions.java
static class SomeOtherCheckedException extends Exception {} static class YetAnotherCheckedException extends Exception {} static class SomeUncheckedException extends RuntimeException {} static class SomeChainingException extends RuntimeException { public SomeChainingException(Throwable cause) { super(cause); } } private TestExceptions() {}Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Jan 18 02:54:30 UTC 2025 - 1.3K bytes - Viewed (0)