- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 1,654 for Try (0.01 sec)
-
android/guava/src/com/google/common/io/Closer.java
* throw closer.rethrow(e); * } finally { * closer.close(); * } * } * * <p>Note that this try-catch-finally block is not equivalent to a try-catch-finally block using * try-with-resources. To get the equivalent of that, you must wrap the above code in <i>another</i> * try block in order to catch any exception that may be thrown (including from the call to {@code * close()}). *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 10.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/job/impl/ScriptExecutorTest.java
assertEquals("script for engine2", engine2.getLastScript()); } public void test_execute_withInvalidScriptType() { // Try to execute with non-existent script type try { scriptExecutor.execute("nonexistent", "some script"); fail("Expected ScriptEngineException"); } catch (ScriptEngineException e) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 10.2K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/Exchange.kt
} @Throws(IOException::class) fun flushRequest() { try { codec.flushRequest() } catch (e: IOException) { eventListener.requestFailed(call, e) trackFailure(e) throw e } } @Throws(IOException::class) fun finishRequest() { try { codec.finishRequest() } catch (e: IOException) { eventListener.requestFailed(call, e)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue Jul 29 22:04:11 UTC 2025 - 9.7K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeHandleImpl.java
} } private void emergencyReleaseHandle() { try { // Force release the handle with null checks if (this.usageCount != null) { this.usageCount.set(0); } // Clear references to prevent memory leaks try { if (this.treeConnection != null) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileIntegrationTest.java
// Write initial content try (OutputStream out = file.openOutputStream(false)) { out.write(initialContent.getBytes("UTF-8")); } // Overwrite with new content try (OutputStream out = file.openOutputStream(false)) { out.write(newContent.getBytes("UTF-8")); } // Verify new content try (InputStream in = file.getInputStream()) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 56K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CloserTest.java
TestCloseable c1 = closer.register(TestCloseable.normal()); TestCloseable c2 = closer.register(TestCloseable.normal()); IOException exception = new IOException(); try { try { throw exception; } catch (Throwable e) { throw closer.rethrow(e); } finally { closer.close(); } } catch (Throwable expected) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 11.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeImpl.java
final Set<RequestParam> params) throws CIFSException { try (SmbSessionImpl sess = getSession(); SmbTransportImpl transport = sess.getTransport()) { if (response != null) { response.clearReceived(); } // try TreeConnectAndX with the request // this does not make any sense if we are disconnecting right now
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 30K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/ThemeHelperTest.java
} super.tearDown(); } private void deleteDirectory(Path dir) throws IOException { Files.walk(dir).sorted((a, b) -> b.compareTo(a)).forEach(path -> { try { Files.delete(path); } catch (IOException e) { // Ignore } }); } public void test_getThemeName() {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 19 23:49:30 UTC 2025 - 14.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/sql/StatementUtil.java
*/ public static boolean execute(final Statement statement, final String sql) { assertArgumentNotNull("statement", statement); assertArgumentNotEmpty("sql", sql); try { return statement.execute(sql); } catch (final SQLException ex) { throw new SQLRuntimeException(ex); } } /** * Sets the fetch size. *
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/SearchEngineUtilTest.java
builder.startObject(); builder.field("string", "test"); builder.endObject(); return builder; } }; try { String result = SearchEngineUtil.getXContentString(xContent, XContentType.JSON); assertNotNull(result); assertTrue(result.contains("string"));
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 13.6K bytes - Viewed (0)