- Sort Score
- Num 10 results
- Language All
Results 1251 - 1260 of 2,310 for rethrow (0.05 seconds)
-
compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java
case STRING_ITEM -> 1; case COMBINATION_ITEM -> 1; // 1.1 > 1-sp case LIST_ITEM -> 1; // 1.1 > 1-1 default -> throw new IllegalStateException("invalid item: " + item.getClass()); }; } @Override public boolean equals(Object o) { if (this == o) { return true;Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jul 23 17:27:08 GMT 2025 - 26.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/suggest/util/SuggestUtilTest.java
public void testGetAsListWithArray() { // Test with array (should throw exception) String[] array = { "one", "two" }; SuggestUtil.getAsList(array); } @Test(expected = IllegalArgumentException.class) public void testGetAsListWithDouble() { // Test with double (should throw exception) SuggestUtil.getAsList(3.14); }
Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Mon Nov 24 03:40:05 GMT 2025 - 26.7K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/Authenticate.java
.url("http://publicobject.com/secrets/hellosecret.txt") .build(); try (Response response = client.newCall(request).execute()) { if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); System.out.println(response.body().string()); } } public static void main(String... args) throws Exception { new Authenticate().run(); }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Aug 12 07:26:27 GMT 2021 - 1.9K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/testing/SloppyTearDown.java
import java.util.logging.Level; import java.util.logging.Logger; import org.jspecify.annotations.NullMarked; /** * Simple utility for when you want to create a {@link TearDown} that may throw an exception but * should not fail a test when it does. (The behavior of a {@code TearDown} that throws an exception * varies; see its documentation for details.) Use it just like a {@code TearDown}, except overrideCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 14:50:24 GMT 2024 - 1.6K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnsh/ShellCommandRegistryHolder.java
} } if (!exceptions.isEmpty()) { IllegalStateException ex = new IllegalStateException("Could not close commandRegistries"); exceptions.forEach(ex::addSuppressed); throw ex; } }Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Dec 17 09:50:45 GMT 2024 - 2.2K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbResourceLocatorImpl.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 23.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/dfs/DfsReferralDataInternalTest.java
mockReferralData.stripPathConsumed(value); verify(mockReferralData, times(1)).stripPathConsumed(value); // Test with concrete implementation - may throw for invalid values if (value >= 0 && value <= concreteImplementation.getPathConsumed()) { assertDoesNotThrow(() -> concreteImplementation.stripPathConsumed(value)); } }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 28.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/UserRoleLoginExceptionTest.java
assertNull(exception.getCause()); } @Test public void test_throwAndCatch() { // Test throwing and catching the exception try { throw new UserRoleLoginException(RootAction.class); } catch (UserRoleLoginException e) { assertEquals(RootAction.class, e.getActionClass()); assertNull(e.fillInStackTrace());
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 11K bytes - Click Count (0) -
.teamcity/scripts/CheckBadMerge.java
} private static ExecResult exec(String[] command) throws IOException, InterruptedException, ExecutionException { Objects.requireNonNull(command, "command"); if (command.length == 0) { throw new IllegalArgumentException("command must not be empty"); } ProcessBuilder pb = new ProcessBuilder(command); Process process = pb.start();Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Mon Mar 30 16:25:09 GMT 2026 - 9K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/WholeOperationTimeoutTest.kt
override fun onResponse( call: Call, response: Response, ) { try { Thread.sleep(500) } catch (e: InterruptedException) { throw AssertionError() } assertFailsWith<IOException> { response.body.source().readUtf8() }.also { expected -> exceptionRef.set(expected) latch.countDown()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Jun 18 12:28:21 GMT 2025 - 10.6K bytes - Click Count (0)