- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 137 for exceptions (0.21 sec)
-
src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java
assertTrue(endLatch.await(30, TimeUnit.SECONDS), "All threads should complete within timeout"); executor.shutdown(); // Then - Verify no exceptions occurred if (!exceptions.isEmpty()) { fail("Concurrent operations caused exceptions: " + exceptions.get(0)); } assertEquals(threadCount * opsPerThread, successCount.get(), "All operations should succeed"); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/smb/CriticalPerformanceTest.java
System.out.printf(" Avg tree operation time: %.2f ns%n", avgOpTimeNs); // Verify thread safety and performance assertTrue(exceptions.isEmpty(), "No exceptions should occur with thread-safe collections: " + exceptions); assertEquals(threadCount * operationsPerThread, treeOperations.get()); assertTrue(avgOpTimeNs < 100000, "Tree operations should be reasonable with CopyOnWriteArrayList");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.3K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/pool/CrawlerPooledObjectFactoryTest.java
throw new RuntimeException("Test exception in listener"); } }); try { factory.destroyObject(pooledObject); fail("Should propagate exception from listener"); } catch (Exception e) { assertTrue(e.getMessage().contains("Test exception")); } } /**
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Wed Sep 03 14:42:53 UTC 2025 - 19.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java
BufferCache.releaseBuffer(buffer); successCount.incrementAndGet(); } } catch (Exception e) { synchronized (exceptions) { exceptions.add(e); } } finally { endLatch.countDown(); } }); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.6K bytes - Viewed (0) -
README.md
``` ### Exception Handling ```java import org.codelibs.core.exception.*; // Runtime exception wrappers eliminate try-catch boilerplate try { // Code that might throw checked exceptions return ClassUtil.newInstance(className); // Wraps checked exceptions automatically } catch (ClassNotFoundRuntimeException e) { // Handle the wrapped exceptionRegistered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sun Aug 31 02:56:02 UTC 2025 - 12.7K bytes - Viewed (0) -
docs/en/docs/tutorial/handling-errors.md
{* ../../docs_src/handling_errors/tutorial002.py hl[14] *} ## Install custom exception handlers { #install-custom-exception-handlers } You can add custom exception handlers with <a href="https://www.starlette.io/exceptions/" class="external-link" target="_blank">the same exception utilities from Starlette</a>. Let's say you have a custom exception `UnicornException` that you (or a library you use) might `raise`.Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 9.4K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/exception/CrawlerSystemExceptionTest.java
assertNotNull(exception); assertNull(exception.getCause()); assertNull(exception.getMessage()); } /** * Test constructor with various cause types */ public void test_constructor_withVariousCauseTypes() { // With Exception cause Exception exceptionCause = new Exception("Exception cause");Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Wed Sep 03 14:42:53 UTC 2025 - 20K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/dependencies-with-yield.md
Before FastAPI 0.110.0, if you used a dependency with `yield`, and then you captured an exception with `except` in that dependency, and you didn't raise the exception again, the exception would be automatically raised/forwarded to any exception handlers or the internal server error handler.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 12.7K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerStatusTest.java
assertTrue(CrawlerStatus.INITIALIZING.compareTo(CrawlerStatus.DONE) < 0); } } catch (Exception e) { synchronized (exceptions) { exceptions.add(e); } } } }); } // Start all threads
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Wed Sep 03 14:42:53 UTC 2025 - 15.8K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md
They can declare request requirements (like headers) or other sub-dependencies: {* ../../docs_src/dependencies/tutorial006_an_py39.py hl[8,13] *} ### Raise exceptions { #raise-exceptions } These dependencies can `raise` exceptions, the same as normal dependencies: {* ../../docs_src/dependencies/tutorial006_an_py39.py hl[10,15] *} ### Return values { #return-values }
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 2.9K bytes - Viewed (0)