- Sort Score
- Num 10 results
- Language All
Results 451 - 460 of 2,371 for Try (0.02 seconds)
-
guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java
assertThat(peeker.getDone(input1)).isSameInstanceAs("value1"); try { peeker.getDone(input2Failed); fail("Peeker.getDone() should fail for failed inputs"); } catch (ExecutionException expected) { } try { peeker.getDone(nonInput);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 63K bytes - Click Count (0) -
src/main/java/org/codelibs/core/xml/SchemaUtil.java
*/ public static Schema newSchema(final SchemaFactory factory, final File schema) { assertArgumentNotNull("factory", factory); assertArgumentNotNull("schema", schema); try { return factory.newSchema(schema); } catch (final SAXException e) { throw new SAXRuntimeException(e); } } /**Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 5.5K bytes - Click Count (0) -
src/main/java/org/codelibs/core/security/MessageDigestUtil.java
* If a {@link NoSuchAlgorithmException} occurs */ public static MessageDigest getInstance(final String algorithm) { assertArgumentNotEmpty("algorithm", algorithm); try { return MessageDigest.getInstance(algorithm); } catch (final NoSuchAlgorithmException e) { throw new NoSuchAlgorithmRuntimeException(e); } } /**Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 3.1K bytes - Click Count (0) -
android/guava/src/com/google/common/io/ByteSource.java
} Closer closer = Closer.create(); try { InputStream in = closer.register(openStream()); return countBySkipping(in); } catch (IOException e) { // skip may not be supported... at any rate, try reading } finally { closer.close(); } closer = Closer.create(); try { InputStream in = closer.register(openStream());Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 08 18:35:13 GMT 2025 - 25.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/UnsupportedSearchExceptionTest.java
} @Test public void test_throwAndCatch() { // Test throwing and catching the exception String expectedMessage = "Thrown exception"; try { throw new UnsupportedSearchException(expectedMessage); // fail("Exception was not thrown"); } catch (UnsupportedSearchException e) { assertEquals(expectedMessage, e.getMessage());Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 8.7K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoExecutor.java
} private void doExecute2(MavenSession session, MojoExecution mojoExecution) throws LifecycleExecutionException { eventCatapult.fire(ExecutionEvent.Type.MojoStarted, session, mojoExecution); try { try { pluginManager.executeMojo(session, mojoExecution); } catch (MojoFailureException | PluginManagerException | PluginConfigurationExceptionCreated: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Jun 12 14:55:55 GMT 2025 - 21K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/PerCallSettings.kt
.build() // Copy to customize OkHttp for this request. val client1 = client .newBuilder() .readTimeout(500, TimeUnit.MILLISECONDS) .build() try { client1.newCall(request).execute().use { response -> println("Response 1 succeeded: $response") } } catch (e: IOException) { println("Response 1 failed: $e") }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 1.7K 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) -
src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java
NtlmPasswordAuthenticator endAuth = new NtlmPasswordAuthenticator("domain", "user", new String(diffAtEnd)); try { // Measure timing for differences at different positions long timeStart = measureEqualsTime(baseAuth, startAuth, TIMING_ITERATIONS);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 11.2K bytes - Click Count (0) -
src/main/webapp/js/chat.js
errors: { rate_limit: 'It\'s currently busy. Please wait a moment and try again.', auth_error: 'AI service authentication failed. Please contact the administrator.', service_unavailable: 'The AI service is temporarily unavailable. Please try again later.', timeout: 'The request timed out. Please try again.',Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 19 01:36:02 GMT 2026 - 30.6K bytes - Click Count (0)