- Sort Score
- Num 10 results
- Language All
Results 741 - 750 of 2,371 for Try (0.01 seconds)
-
docs_src/dependencies/tutorial008e_py310.py
from fastapi import Depends, FastAPI app = FastAPI() def get_username(): try: yield "Rick" finally: print("Cleanup up before response is sent") @app.get("/users/me") def get_user_me(username: str = Depends(get_username, scope="function")):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 289 bytes - Click Count (0) -
src/main/java/jcifs/smb/Kerb5Authenticator.java
// A potential workaround would be to try to get the server FQDN by reverse lookup, but this might have // security implications and also is not how Microsoft does it. throw new SmbUnsupportedOperationException("Cannot use netbios/short names with kerberos authentication, have " + host); } try { NegTokenInit tok = new NegTokenInit(initialToken);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 13.2K bytes - Click Count (0) -
mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockWebServer.kt
init { delegate.dispatcher = dispatcher.wrap() } private var started: Boolean = false @Synchronized override fun before() { if (started) return try { start() } catch (e: IOException) { throw RuntimeException(e) } } @JvmName("-deprecated_port") fun getPort(): Int = port fun toProxyAddress(): Proxy {Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Jun 18 00:19:42 GMT 2025 - 4.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/auth/chain/AuthenticationChainTest.java
TestAuthenticationChain chain = new TestAuthenticationChain(); chain.updateThrowsException = true; User user = createTestUser("testuser", "Test User"); try { chain.update(user); fail("Expected exception to be thrown"); } catch (RuntimeException e) { assertEquals("Update failed", e.getMessage()); }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 14.8K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/suggest/util/SuggestUtil.java
*/ public static List<String> getKeywords(final String q, final String[] fields) { final List<String> keywords = new ArrayList<>(); final List<TermQuery> termQueryList; try { final StandardQueryParser parser = new StandardQueryParser(); parser.setDefaultOperator(StandardQueryConfigHandler.Operator.AND);Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sun Nov 23 11:21:40 GMT 2025 - 17.5K bytes - Click Count (1) -
android/guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java
} private <T> void assertFailure( Class<T> interfaceType, Function<T, ? extends T> wrapperFunction, String... expectedMessages) { try { tester.testForwarding(interfaceType, wrapperFunction); } catch (AssertionFailedError expected) { for (String message : expectedMessages) { assertThat(expected).hasMessageThat().contains(message);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 12.9K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java
* suppress only the former. */ @CollectionFeature.Require(SUPPORTS_REMOVE) @CollectionSize.Require(ZERO) public void testRetainAll_nullCollectionReferenceEmptySubject() { try { collection.retainAll(null); // Returning successfully is not ideal, but tolerated. } catch (NullPointerException tolerated) { } } @CollectionFeature.Require(SUPPORTS_REMOVE)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 20:54:16 GMT 2025 - 10.7K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/helper/SystemHelper.java
* @param propPath The path to the project properties file. * @throws FessSystemException if the properties file cannot be parsed. */ protected void parseProjectProperties(final Path propPath) { try (final InputStream in = Files.newInputStream(propPath)) { final Properties prop = new Properties(); prop.load(in); version = prop.getProperty("fess.version", "0.0.0");Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 28 06:59:19 GMT 2026 - 43.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java
byte[] decKey = new byte[16]; new SecureRandom().nextBytes(encKey); new SecureRandom().nextBytes(decKey); // When using try-with-resources assertDoesNotThrow(() -> { try (Smb2EncryptionContext context = new Smb2EncryptionContext(1, DialectVersion.SMB311, encKey, decKey)) { assertNotNull(context, "Context should be created");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 44.1K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Stream.kt
withLock { while (headersQueue.isEmpty() && errorCode == null) { val doReadTimeout = callerIsIdle || doReadTimeout() if (doReadTimeout) { readTimeout.enter() } try { waitForIo() } finally { if (doReadTimeout) { readTimeout.exitAndThrowIfTimedOut() } } } if (headersQueue.isNotEmpty()) {Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jul 07 18:57:05 GMT 2025 - 22.4K bytes - Click Count (0)