- Sort Score
- Num 10 results
- Language All
Results 101 - 110 of 492 for RuntimeException (0.1 seconds)
-
src/test/java/org/codelibs/fess/opensearch/client/SearchEngineClientExceptionTest.java
} @Test public void test_constructor_withMessageAndCause() { // Test constructor with message and cause String message = "Test error message"; Throwable cause = new RuntimeException("Underlying cause"); SearchEngineClientException exception = new SearchEngineClientException(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 - 7.1K bytes - Click Count (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/UpgradePropertiesRulePostProcess.java
}); if (!keptAccessors.isEmpty()) { String formattedLeft = CollectionUtils.join("\n", keptAccessors.keySet()); throw new RuntimeException("The following accessors were upgraded, but didn't match any removed/changed method:\n\n" + formattedLeft); } // Find accessors that were removed but shouldn't beCreated: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Mon Aug 19 15:30:48 GMT 2024 - 3.5K bytes - Click Count (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/PreparePatchRelease.kt
if (response.statusCode() > 399) { throw RuntimeException("Failed to fetch versions from Gradle services: ${response.statusCode()} ${response.body()}") } val versions = Gson().fromJson(response.body(), Array<GradleServicesVersion>::class.java) val found = versions.find { it.version == targetVersion } ?: throw RuntimeException("Version $targetVersion not found at $uri")
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Mon Mar 23 14:47:12 GMT 2026 - 2.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java
ScheduledThreadPoolExecutor delegate = new ScheduledThreadPoolExecutor(1); ListeningScheduledExecutorService service = listeningDecorator(delegate); RuntimeException ex = new RuntimeException(); ListenableFuture<?> future = service.schedule(new ThrowingRunnable(0, ex), 1, MILLISECONDS); assertExecutionException(future, ex); assertEquals(0, delegate.getQueue().size()); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 26.1K bytes - Click Count (0) -
guava/src/com/google/common/collect/MoreCollectors.java
@Nullable T element; List<T> extras; final @Nullable Supplier<? extends RuntimeException> exceptionSupplier; ToOptionalState(@Nullable Supplier<? extends RuntimeException> exceptionSupplier) { this.element = null; this.extras = emptyList(); this.exceptionSupplier = exceptionSupplier; } RuntimeException multiples(boolean overflow) { if (exceptionSupplier != null) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Feb 18 16:22:33 GMT 2026 - 6.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/ThrowablesTest.java
assertThrows(SomeError.class, () -> propagate(new SomeError())); } @J2ktIncompatible @GwtIncompatible // propagate public void testPropagate_noneDeclared_checked() { RuntimeException expected = assertThrows(RuntimeException.class, () -> propagate(new SomeCheckedException())); assertThat(expected).hasCauseThat().isInstanceOf(SomeCheckedException.class); } @GwtIncompatible // throwIfInstanceOf
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 15K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java
Throwable t = threadFailure.getAndSet(null); if (t != null) { if (t instanceof Error) { throw (Error) t; } else if (t instanceof RuntimeException) { throw (RuntimeException) t; } else if (t instanceof Exception) { throw (Exception) t; } else { AssertionFailedError afe = new AssertionFailedError(t.toString()); afe.initCause(t);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 8.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/ForwardingObjectTester.java
static { try { DELEGATE_METHOD = ForwardingObject.class.getDeclaredMethod("delegate"); DELEGATE_METHOD.setAccessible(true); } catch (SecurityException e) { throw new RuntimeException(e); } catch (NoSuchMethodException e) { throw new AssertionError(e); } } /** * Ensures that all interface methods of {@code forwarderClass} are forwarded to the {@linkCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 2.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/ForwardingObjectTester.java
static { try { DELEGATE_METHOD = ForwardingObject.class.getDeclaredMethod("delegate"); DELEGATE_METHOD.setAccessible(true); } catch (SecurityException e) { throw new RuntimeException(e); } catch (NoSuchMethodException e) { throw new AssertionError(e); } } /** * Ensures that all interface methods of {@code forwarderClass} are forwarded to the {@linkCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 2.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/GsaConfigExceptionTest.java
} @Test public void test_constructorWithMessageAndCause() { // Test constructor with message and cause String message = "GSA configuration error with cause"; Throwable cause = new RuntimeException("Root cause exception"); GsaConfigException exception = new GsaConfigException(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 - 7.5K bytes - Click Count (0)