- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 514 for exception (0.04 sec)
-
src/test/java/org/codelibs/fess/suggest/index/writer/SuggestWriterResultTest.java
Exception exception = new Exception("Test failure"); result.addFailure(exception); assertTrue(result.hasFailure()); assertEquals(1, result.getFailures().size()); assertEquals(exception, result.getFailures().get(0)); } @Test public void test_addMultipleFailures() throws Exception { SuggestWriterResult result = new SuggestWriterResult();Registered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Thu Nov 13 00:40:54 UTC 2025 - 4.3K bytes - Viewed (0) -
fastapi/exceptions.py
from pydantic import BaseModel, create_model from starlette.exceptions import HTTPException as StarletteHTTPException from starlette.exceptions import WebSocketException as StarletteWebSocketException class EndpointContext(TypedDict, total=False): function: str path: str file: str line: int class HTTPException(StarletteHTTPException): """ An HTTP exception you can raise in your own code to show errors to the client.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 6.8K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/net/protocol/gcs/HandlerTest.java
// All threads should fail with the same IOException (project ID is blank) // But importantly, there should be no race condition errors assertEquals(threadCount, failureCount.get()); assertEquals(0, successCount.get()); // All exceptions should be about project ID being blank for (Exception e : exceptions) { assertTrue(e instanceof IOException);Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Dec 11 08:38:29 UTC 2025 - 14.1K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/net/protocol/storage/HandlerTest.java
// All threads should fail with the same IOException (endpoint is blank) // But importantly, there should be no race condition errors assertEquals(threadCount, failureCount.get()); assertEquals(0, successCount.get()); // All exceptions should be about endpoint being blank for (Exception e : exceptions) { assertTrue(e instanceof IOException);Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Dec 11 08:38:29 UTC 2025 - 14.4K bytes - Viewed (0) -
tests/test_validation_error_context.py
captured_exception.exception = None try: client.get("/items/") except Exception: pass assert captured_exception.exception is not None error_str = str(captured_exception.exception) assert "get_item" in error_str assert "/items/" in error_str def test_websocket_validation_error_includes_endpoint_context(): captured_exception.exception = None try:Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 06 12:21:57 UTC 2025 - 4.7K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/CurlResponseTest.java
} @Test public void testContentException() { CurlResponse response = new CurlResponse(); Exception exception = new IOException("Test exception"); response.setContentException(exception); assertSame(exception, response.getContentException()); } @Test public void testHeaders() { CurlResponse response = new CurlResponse();Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Thu Nov 20 13:34:13 UTC 2025 - 12.5K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/pool/CrawlerPooledObjectFactoryTest.java
assertFalse(component.isCloseCalled()); try { failingFactory.destroyObject(pooledObject); fail("Should throw exception from close()"); } catch (Exception e) { // Expected - exception should propagate from close() assertTrue(e.getMessage().contains("Intentional close failure")); } // Verify close was attemptedRegistered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Nov 20 13:07:01 UTC 2025 - 36.7K bytes - Viewed (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/StrategyOrchestratorTest.java
} @Test @DisplayName("should handle strategy exceptions gracefully") void shouldHandleStrategyExceptionsGracefully() throws Exception { UpgradeContext context = createMockContext(); Map<Path, Document> pomMap = Map.of(Paths.get("pom.xml"), mock(Document.class)); // Mock first strategy to throw exception when(mockStrategies.get(0).isApplicable(context)).thenReturn(true);Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 12.3K bytes - Viewed (0) -
docs/en/docs/tutorial/handling-errors.md
{* ../../docs_src/handling_errors/tutorial002_py39.py hl[14] *} ## Install custom exception handlers { #install-custom-exception-handlers } You can add custom exception handlers with <a href="https://www.starlette.dev/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 Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 9K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/AbstractExtractorTest.java
final String message = e.getMessage(); assertNotNull("Exception message should not be null", message); assertFalse("Exception message should not be empty", message.trim().isEmpty()); assertTrue("Exception message should mention 'inputstream'", message.toLowerCase().contains("inputstream")); assertTrue("Exception message should mention 'null'", message.toLowerCase().contains("null")); }
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 8.4K bytes - Viewed (0)