- Sort Score
- Num 10 results
- Language All
Results 951 - 960 of 2,371 for Try (0.03 seconds)
-
samples/guide/src/main/java/okhttp3/recipes/kt/DevServer.kt
.build() val client = OkHttpClient .Builder() .sslSocketFactory(clientCertificates.sslSocketFactory(), clientCertificates.trustManager) .build() fun run() { try { val request = Request(server.url("/")) client.newCall(request).execute().use { response -> if (!response.isSuccessful) throw IOException("Unexpected code $response")
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 1.9K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddAllTester.java
expectUnchanged(); } @CollectionFeature.Require(absent = SUPPORTS_ADD) public void testAddAll_unsupportedNothing() { try { assertFalse( "addAll(nothing) should return false or throw", collection.addAll(emptyCollection())); } catch (UnsupportedOperationException tolerated) { } expectUnchanged(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 7.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/ResourcesTest.java
URL baseUrl = tempFile.getParentFile().toURI().toURL(); URLClassLoader loader = new URLClassLoader(new URL[] {baseUrl}); ClassLoader oldContextLoader = Thread.currentThread().getContextClassLoader(); try { Thread.currentThread().setContextClassLoader(loader); URL url = Resources.getResource(tempFile.getName()); String text = Resources.toString(url, UTF_8);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 6.9K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddAllTester.java
expectUnchanged(); } @CollectionFeature.Require(absent = SUPPORTS_ADD) public void testAddAll_unsupportedNothing() { try { assertFalse( "addAll(nothing) should return false or throw", collection.addAll(emptyCollection())); } catch (UnsupportedOperationException tolerated) { } expectUnchanged(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 7.9K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/job/LogNotificationJob.java
} final Postbox postbox = ComponentUtil.getComponent(Postbox.class); final NotificationHelper notificationHelper = ComponentUtil.getNotificationHelper(); try { SMailCallbackContext.setPreparedMessageHookOnThread(notificationHelper::send); LogNotificationPostcard.droppedInto(postbox, postcard -> {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 02:24:08 GMT 2026 - 9.4K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealCall.kt
} override fun isCanceled(): Boolean = canceled override fun execute(): Response { check(executed.compareAndSet(false, true)) { "Already Executed" } timeout.enter() callStart() try { client.dispatcher.executed(this) return getResponseWithInterceptorChain() } finally { client.dispatcher.finished(this) } } override fun enqueue(responseCallback: Callback) {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Jan 11 12:06:21 GMT 2026 - 19.5K bytes - Click Count (0) -
src/main/java/jcifs/spnego/NegTokenInit.java
} return String.format("NegTokenInit[flags=%d,mechs=%s,mic=%s]", this.getContextFlags(), Arrays.toString(this.getMechanisms()), mic); } @Override public byte[] toByteArray() { try { final ASN1EncodableVector fields = new ASN1EncodableVector(); final ASN1ObjectIdentifier[] mechs = getMechanisms(); if (mechs != null) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 10.3K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/ModelVersionUtils.java
Editor editor = new Editor(pomDocument); Element root = editor.root(); if (root == null) { return MODEL_VERSION_4_0_0; } // First try to get from modelVersion element Element modelVersionElement = root.child(MODEL_VERSION).orElse(null); if (modelVersionElement != null) { String modelVersion = modelVersionElement.textContentTrimmed();
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 9.5K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/UpgradeParser.java
import org.apache.maven.api.cli.Options; import org.apache.maven.cling.invoker.BaseParser; public class UpgradeParser extends BaseParser { @Override protected Options parseCliOptions(LocalContext context) { try { return CommonsCliUpgradeOptions.parse(context.parserRequest.args().toArray(new String[0])); } catch (ParseException e) {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jun 11 13:14:09 GMT 2025 - 1.4K bytes - Click Count (0) -
docs/zh/docs/tutorial/dependencies/dependencies-with-yield.md
{* ../../docs_src/dependencies/tutorial007_py310.py hl[5:6] *} /// tip | 提示 你可以使用 `async` 或普通函数。 **FastAPI** 会像处理普通依赖一样对它们进行正确处理。 /// ## 同时使用 `yield` 和 `try` 的依赖项 { #a-dependency-with-yield-and-try } 如果你在带有 `yield` 的依赖中使用了 `try` 代码块,那么当使用该依赖时抛出的任何异常你都会收到。 例如,如果在中间的某处代码中(在另一个依赖或在某个 *路径操作* 中)发生了数据库事务“回滚”或产生了其他异常,你会在你的依赖中收到这个异常。 因此,你可以在该依赖中用 `except SomeException` 来捕获这个特定异常。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 12.1K bytes - Click Count (0)