- Sort Score
- Num 10 results
- Language All
Results 1051 - 1060 of 2,141 for catch (0.02 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
android/guava-tests/test/com/google/common/base/FunctionsTest.java
// convoluted way to check that the same result happens from each Y expected = null; try { expected = f.apply(i); } catch (IllegalArgumentException e) { try { g.apply(i); fail(); } catch (IllegalArgumentException ok) { continue; } } assertEquals(expected, g.apply(i)); } } @J2ktIncompatibleCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 16.2K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/ConcurrentLifecycleStarter.java
new ReactorContext(session.getResult(), oldContextClassLoader, reactorBuildStatus); executor.execute(session, reactorContext, taskSegments); } catch (Exception e) { session.getResult().addException(e); } finally { eventCatapult.fire(ExecutionEvent.Type.SessionEnded, session, null); } }
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 8.3K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/ForbiddenPatternsTask.java
List<String> lines; try (Stream<String> stream = Files.lines(f.toPath(), StandardCharsets.UTF_8)) { lines = stream.collect(Collectors.toList()); } catch (UncheckedIOException e) { throw new IllegalArgumentException("Failed to read " + f + " as UTF_8", e); } List<Integer> invalidLines = IntStream.range(0, lines.size())
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 6.8K bytes - Click Count (0) -
src/main/java/jcifs/spnego/NegTokenTarg.java
} der.writeObject(new DERTaggedObject(true, 1, new DERSequence(fields))); return collector.toByteArray(); } catch (final IOException ex) { throw new IllegalStateException(ex.getMessage()); } } @Override protected void parse(final byte[] token) throws IOException {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 6.9K bytes - Click Count (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/CLIReportingUtils.java
MavenCli.class.getResourceAsStream("/org/apache/maven/messages/build.properties")) { if (resourceAsStream != null) { properties.load(resourceAsStream); } } catch (IOException e) { System.err.println("Unable determine version from JAR file: " + e.getMessage()); } return properties; }
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Nov 08 08:49:11 GMT 2024 - 7.3K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/PomBuilder.java
public Document buildDocument() { try { String xmlContent = build(); Editor editor = new Editor(Document.of(xmlContent)); return editor.document(); } catch (Exception e) { throw new RuntimeException("Failed to build POM document", e); } } private record Parent(String groupId, String artifactId, String version) {}Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 7.2K bytes - Click Count (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt
timeZone = utc set2DigitYearStart(Date(-631152000000L)) // 1950-01-01T00:00:00Z. } try { val parsed = dateFormat.parse(string) return parsed.time } catch (e: ParseException) { throw ProtocolException("Failed to parse UTCTime $string") } } internal fun formatUtcTime(date: Long): String { val utc = TimeZone.getTimeZone("GMT") val dateFormat =Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 15K bytes - Click Count (0) -
src/test/java/jcifs/smb1/netbios/SocketInputStreamTest.java
try { long skipped = sis.skip(10); // If it doesn't throw, it should only skip what's available assertEquals(3, skipped); } catch (IOException e) { // This is also acceptable behavior - skip may fail when it runs out of data assertTrue(e.getMessage().contains("unexpected EOF")); } } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.2K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/service/ScheduledJobService.java
cb.query().addOrderBy_Name_Asc(); }, scheduledJob -> { try { ComponentUtil.getJobHelper().register(cron, scheduledJob); } catch (final Exception e) { logger.error("Failed to start job: id={}", scheduledJob.getId(), e); } }); }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Nov 28 16:29:12 GMT 2025 - 6.2K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeStrategy.java
context.indent(); try { UpgradeResult result = doApply(context, pomMap); // Log summary logSummary(context, result); return result; } catch (Exception e) { context.failure("Strategy execution failed: " + e.getMessage()); return UpgradeResult.failure(pomMap.keySet(), Set.of()); } finally { context.unindent(); }
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 7.1K bytes - Click Count (0)