- Sort Score
- Result 10 results
- Languages All
Results 321 - 330 of 426 for Throwables (0.04 sec)
-
compat/maven-compat/src/test/java/org/apache/maven/artifact/testutils/TestFileManager.java
return file; } public String getFileContents(File file, String encoding) throws IOException { return FileUtils.fileRead(file, encoding); } protected void finalize() throws Throwable { maybeWarnAboutCleanUp(); super.finalize(); } public File createFile(String filename, String content, String encoding) throws IOException { File dir = createTempDir();
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4.7K bytes - Viewed (0) -
okhttp/src/androidMain/kotlin/okhttp3/internal/platform/Android10Platform.kt
AndroidCertificateChainCleaner.buildIfSupported(trustManager) ?: super.buildCertificateChainCleaner(trustManager) override fun log( message: String, level: Int, t: Throwable?, ) { if (level == WARN) { Log.w(Tag, message, t) } else { Log.i(Tag, message, t) } } companion object {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun Jul 20 11:25:50 UTC 2025 - 4.5K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/TearDownStackTest.java
} assertEquals(true, tearDownOne.ran); assertEquals(true, tearDownTwo.ran); } @Override public final void runBare() throws Throwable { try { setUp(); runTest(); } finally { tearDown(); } } @Override protected void tearDown() { tearDownStack.runTearDown(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 4.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/job/ScriptExecutorJob.java
} jobLog.setScriptResult(ret.toString()); } jobLog.setJobStatus(Constants.OK); } catch (final Throwable t) { logger.warn("Failed to execute {}: {}", id, script, t); jobLog.setJobStatus(Constants.FAIL); jobLog.setScriptResult(systemHelper.abbreviateLongText(t.getLocalizedMessage()));
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 5.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java
assertNull(ex.getCause(), "No cause expected when only message is provided"); // toString behavior mirrors Throwable: includes message when not null String ts = ex.toString(); assertTrue(ts.contains("SmbUnsupportedOperationException"), "toString should contain class name"); if (msg != null) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.2K bytes - Viewed (0) -
samples/crawler/src/main/java/okhttp3/sample/Crawler.java
ExecutorService executor = Executors.newFixedThreadPool(threadCount); for (int i = 0; i < threadCount; i++) { executor.execute(() -> { try { drainQueue(); } catch (Throwable e) { e.printStackTrace(); } }); } executor.shutdown(); } private void drainQueue() throws Exception { for (HttpUrl url; (url = queue.take()) != null; ) {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jul 23 00:58:06 UTC 2025 - 5K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/AbstractInvocationHandlerTest.java
DelegatingInvocationHandler(Object delegate) { this.delegate = checkNotNull(delegate); } @Override protected Object handleInvocation(Object proxy, Method method, Object[] args) throws Throwable { return method.invoke(delegate, args); } @Override public String toString() { return "some arbitrary string"; } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 28 02:48:50 UTC 2024 - 5.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/DictionaryExceptionTest.java
assertTrue(exception instanceof RuntimeException); assertTrue(exception instanceof Exception); assertTrue(exception instanceof Throwable); } public void test_stackTrace() { // Test that stack trace is properly set DictionaryException exception = new DictionaryException("Stack trace test");
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 6.4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/ResourceBundleUtil.java
assertArgumentNotNull("bundle", bundle); assertArgumentNotEmpty("key", key); try { return bundle.getString(key); } catch (final Throwable t) { return null; } } /** * Converts the resource bundle to a {@link Map}. * * @param bundle the resource bundle (must not be {@literal null})
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 5.3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/WebPlatformUrlTest.kt
} try { testHttpUrl(testData) if (KNOWN_FAILURES.contains(testData.toString())) { System.err.println("Expected failure but was success: $testData") } } catch (e: Throwable) { if (KNOWN_FAILURES.contains(testData.toString())) { System.err.println("Ignoring known failure: $testData") e.printStackTrace() } else { throw e } } }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 4.7K bytes - Viewed (0)