- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 492 for RuntimeException (0.48 seconds)
-
src/test/java/org/codelibs/fess/exception/SsoProcessExceptionTest.java
// Test backward compatibility - verify RuntimeException still works String message = "SSO runtime error"; RuntimeException runtimeException = new RuntimeException("SSO processing failed"); SsoProcessException exception = new SsoProcessException(message, runtimeException); assertEquals(message, exception.getMessage());Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 13.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedInputs.java
immediateFailedFuture(CHECKED_EXCEPTION); static final RuntimeException UNCHECKED_EXCEPTION = new RuntimeException("mymessage"); static final Future<String> FAILED_FUTURE_UNCHECKED_EXCEPTION = immediateFailedFuture(UNCHECKED_EXCEPTION); static final RuntimeException RUNTIME_EXCEPTION = new RuntimeException(); static final OtherThrowable OTHER_THROWABLE = new OtherThrowable();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 6.3K bytes - Click Count (0) -
src/test/java/jcifs/util/SmbCircuitBreakerTest.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 23.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/dict/DictionaryExpiredExceptionTest.java
// Test that it can be caught as RuntimeException try { throw new DictionaryExpiredException(); } catch (RuntimeException e) { assertNotNull(e); assertTrue(e instanceof DictionaryExpiredException); } catch (Exception e) { fail("Should have caught as RuntimeException"); } } @TestCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 7.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessApiFailureHookTest.java
// Test with null message RuntimeException nullMessageEx = new RuntimeException(); assertNull(nullMessageEx.getMessage()); // Test with empty message RuntimeException emptyMessageEx = new RuntimeException(""); assertEquals("", emptyMessageEx.getMessage()); } // Test JSON response creation helper @TestCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 7.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/PluginExceptionTest.java
} @Test public void test_constructor_withMessageAndCause() { // Test constructor with message and cause String message = "Plugin initialization failed"; Throwable cause = new RuntimeException("Underlying error"); PluginException exception = new PluginException(message, cause); assertNotNull(exception); assertEquals(message, exception.getMessage());Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 8.1K bytes - Click Count (0) -
guava/src/com/google/common/base/Throwables.java
checkNotNull(throwable); if (throwable instanceof RuntimeException) { throw (RuntimeException) throwable; } if (throwable instanceof Error) { throw (Error) throwable; } } /** * Propagates {@code throwable} exactly as-is, if and only if it is an instance of {@link * RuntimeException} or {@link Error}. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 20.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/FessSystemExceptionTest.java
assertEquals(message, exception.getMessage()); assertNull(exception.getCause()); // Test that suppression is enabled RuntimeException suppressed = new RuntimeException("Suppressed exception"); exception.addSuppressed(suppressed); assertEquals(1, exception.getSuppressed().length); assertEquals(suppressed, exception.getSuppressed()[0]); }Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 7.6K bytes - Click Count (0) -
guava-testlib/test/com/google/common/testing/GcFinalizationTest.java
try { CountDownLatch latch = new CountDownLatch(1); RuntimeException expected = assertThrows(RuntimeException.class, () -> GcFinalization.await(latch)); assertWrapsInterruptedException(expected); } finally { interruptenator.shutdown(); Thread.interrupted(); } }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 8.8K bytes - Click Count (0) -
src/test/java/jcifs/util/transport/TransportExceptionTest.java
// Create a root cause exception RuntimeException rootCause = new RuntimeException("Root cause error"); TransportException exception = new TransportException(rootCause); // Verify the exception has the correct cause assertNotNull(exception); assertEquals(rootCause, exception.getCause()); assertEquals("java.lang.RuntimeException: Root cause error", exception.getMessage());Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.4K bytes - Click Count (0)