- Sort Score
- Result 10 results
- Languages All
Results 621 - 630 of 1,922 for try (0.03 sec)
-
guava/src/com/google/common/io/ByteSink.java
* Writes all the given bytes to this sink. * * @throws IOException if an I/O occurs while writing to this sink */ public void write(byte[] bytes) throws IOException { checkNotNull(bytes); try (OutputStream out = openStream()) { out.write(bytes); } } /** * Writes all the bytes from the given {@code InputStream} to this sink. Does not close {@code * input}. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 28 16:55:09 UTC 2024 - 5K bytes - Viewed (0) -
src/main/java/jcifs/http/NtlmHttpURLConnection.java
this.transportContext = tc; this.requestProperties = new HashMap<>(); copySettings(); } /** * */ private final void copySettings () { try { this.setRequestMethod(this.connection.getRequestMethod()); } catch ( ProtocolException e ) { throw new RuntimeCIFSException("Failed to set request method", e); }
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 25.5K bytes - Viewed (0) -
docs/en/docs/help-fastapi.md
Just remember, the most important point is: try to be kind. People come with their frustrations and in many cases don't ask in the best way, but try as best as you can to be kind. 🤗
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Aug 15 23:30:12 UTC 2024 - 13.7K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java
for (String testName : testNames) { try { testClass.getMethod(testName); return true; } catch (NoSuchMethodException e) { continue; } } return false; } private static boolean isEqualsDefined(Class<?> cls) { try { return !cls.getDeclaredMethod("equals", Object.class).isSynthetic();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 19:43:49 UTC 2024 - 17.9K bytes - Viewed (0) -
android/guava/src/com/google/common/io/CharSink.java
* * @throws IOException if an I/O error while writing to this sink */ public void write(CharSequence charSequence) throws IOException { checkNotNull(charSequence); try (Writer out = openStream()) { out.append(charSequence); } } /** * Writes the given lines of text to this sink with each line (including the last) terminated with
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 6.8K bytes - Viewed (0) -
fastapi/cli.py
try: from fastapi_cli.cli import main as cli_main except ImportError: # pragma: no cover cli_main = None # type: ignore def main() -> None: if not cli_main: # type: ignore[truthy-function] message = 'To use the fastapi command, please install "fastapi[standard]":\n\n\tpip install "fastapi[standard]"\n' print(message) raise RuntimeError(message) # noqa: B904
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Aug 02 06:03:05 UTC 2024 - 418 bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/TearDownStackTest.java
final ThrowingTearDown tearDownTwo = new ThrowingTearDown("two"); stack.addTearDown(tearDownTwo); assertEquals(false, tearDownOne.ran); assertEquals(false, tearDownTwo.ran); try { stack.runTearDown(); fail("runTearDown should have thrown an exception"); } catch (ClusterException expected) { assertThat(expected).hasCauseThat().hasMessageThat().isEqualTo("two");
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jun 21 10:19:29 UTC 2024 - 4.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapGetOrDefaultTester.java
v3(), getMap().getOrDefault(null, v3())); } @MapFeature.Require(absent = ALLOWS_NULL_KEY_QUERIES) public void testGetOrDefault_nullAbsentAndUnsupported() { try { assertEquals( "getOrDefault(null, def) should return default or throw", v3(), getMap().getOrDefault(null, v3())); } catch (NullPointerException tolerated) { } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:51:04 UTC 2024 - 4.5K bytes - Viewed (0) -
okhttp-java-net-cookiejar/src/main/kotlin/okhttp3/java/net/cookiejar/JavaNetCookieJar.kt
} val multimap = mapOf("Set-Cookie" to cookieStrings) try { cookieHandler.put(url.toUri(), multimap) } catch (e: IOException) { Platform.get().log("Saving cookies failed for " + url.resolve("/...")!!, WARN, e) } } override fun loadForRequest(url: HttpUrl): List<Cookie> { val cookieHeaders = try { // The RI passes all headers. We don't have 'em, so we don't pass 'em!
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 06 04:10:43 UTC 2024 - 3.8K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/impl/MimeTypeHelperImpl.java
protected MimeTypes mimeTypes; protected boolean useFilename = false; protected boolean useFilenameOnOctetStream = true; public MimeTypeHelperImpl() { try { mimeTypes = MimeTypesFactory.create(MIME_TYPES_RESOURCE_NAME); } catch (final Exception e) { throw new CrawlerSystemException("Could not initialize MimeTypeHelper.", e); } }
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 4.6K bytes - Viewed (0)