- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 473 for Exception (0.79 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) -
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) -
fess-crawler/src/test/java/org/codelibs/fess/net/protocol/gcs/HandlerTest.java
conn.connect(); successCount.incrementAndGet(); } catch (Exception e) { synchronized (exceptions) { exceptions.add(e); } failureCount.incrementAndGet(); } finally { doneLatch.countDown(); }
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/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) -
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/net/protocol/storage/HandlerTest.java
conn.connect(); successCount.incrementAndGet(); } catch (Exception e) { synchronized (exceptions) { exceptions.add(e); } failureCount.incrementAndGet(); } finally { doneLatch.countDown(); }
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Dec 11 08:38:29 UTC 2025 - 14.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/mylasta/direction/FessConfig.java
*/ String getApiJsonResponseHeaders(); /** * Get the value for the key 'api.json.response.exception.included'. <br> * The value is, e.g. false <br> * comment: Whether to include exceptions in API JSON response. * @return The value of found property. (NotNull: if not found, exception but basically no way) */Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Sat Dec 13 02:21:17 UTC 2025 - 525.7K bytes - Viewed (2) -
docs/de/docs/tutorial/dependencies/dependencies-with-yield.md
Wenn Sie eine Exception in einer Abhängigkeit mit `yield` abfangen, sollten Sie – sofern Sie nicht eine andere `HTTPException` oder Ähnliches auslösen – **die ursprüngliche Exception erneut auslösen**. Sie können dieselbe Exception mit `raise` erneut auslösen: {* ../../docs_src/dependencies/tutorial008d_an_py39.py hl[17] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 14.7K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/ExtractorResourceManagementTest.java
import org.codelibs.fess.crawler.entity.ExtractData; import org.codelibs.fess.crawler.exception.CrawlerSystemException; import org.codelibs.fess.crawler.exception.ExtractException; import org.dbflute.utflute.core.PlainTestCase; /** * Test class to verify proper resource management in Extractor implementations. * This test ensures that resources are properly closed even when exceptions occur. */
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 10.4K bytes - Viewed (0)