Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 491 - 500 of 738 for invalidation (0.06 seconds)

  1. docs/zh-hant/docs/tutorial/handling-errors.md

    ## 覆寫預設例外處理器 { #override-the-default-exception-handlers }
    
    **FastAPI** 內建了一些預設例外處理器。
    
    這些處理器負責在你 `raise` 一個 `HTTPException` 或請求帶有無效資料時,回傳預設的 JSON 回應。
    
    你可以用自己的處理器來覆寫它們。
    
    ### 覆寫請求驗證例外 { #override-request-validation-exceptions }
    
    當請求包含無效資料時,**FastAPI** 會在內部 raise 一個 `RequestValidationError`。
    
    它同時也包含了對應的預設例外處理器。
    
    要覆寫它,匯入 `RequestValidationError`,並用 `@app.exception_handler(RequestValidationError)` 來裝飾你的例外處理器。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 8.3K bytes
    - Click Count (0)
  2. fastapi/.agents/skills/fastapi/SKILL.md

    See [the dependency injection reference](references/dependencies.md) for detailed patterns including `yield` with `scope`, and class dependencies.
    
    Use dependencies when the logic can't be declared in Pydantic validation, depends on external resources, needs cleanup (with `yield`), or is shared across endpoints.
    
    Apply shared dependencies at the router level via `dependencies=[Depends(...)]`.
    
    ## Async vs Sync *path operations*
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 10:05:57 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb/SmbTreeImpl.java

            try {
                resp = send(req, RequestParam.NO_RETRY);
            } catch (final SMBSignatureValidationException e) {
                throw new SMBProtocolDowngradeException("Signature error during negotiate validation", e);
            } catch (final SmbException e) {
                if (log.isDebugEnabled()) {
                    log.debug(String.format("VALIDATE_NEGOTIATE_INFO response code 0x%x", e.getNtStatus()));
                }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 30K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb/NetServerEnumIteratorTest.java

    import jcifs.ResourceNameFilter;
    import jcifs.SmbConstants;
    import jcifs.SmbResource;
    import jcifs.SmbResourceLocator;
    
    /**
     * Unit tests for NetServerEnumIterator.
     * Tests focus on constructor validation and basic iterator contract.
     */
    @ExtendWith(MockitoExtension.class)
    @MockitoSettings(strictness = Strictness.LENIENT)
    class NetServerEnumIteratorTest {
    
        @Mock
        private SmbResourceLocator locator;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.8K bytes
    - Click Count (0)
  5. docs/en/docs/tutorial/path-params-numeric-validations.md

    * `le`: `l`ess than or `e`qual
    
    /// info
    
    `Query`, `Path`, and other classes you will see later are subclasses of a common `Param` class.
    
    All of them share the same parameters for additional validation and metadata you have seen.
    
    ///
    
    /// note | Technical Details
    
    When you import `Query`, `Path` and others from `fastapi`, they are actually functions.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 6.1K bytes
    - Click Count (0)
  6. cmd/signature-v4-utils_test.go

    	}
    
    	if policies[0] != "consoleAdmin" {
    		t.Fatalf("expected 'consoleAdmin', %s", policies[0])
    	}
    }
    
    // TestSkipContentSha256Cksum - Test validate the logic which decides whether
    // to skip checksum validation based on the request header.
    func TestSkipContentSha256Cksum(t *testing.T) {
    	testCases := []struct {
    		inputHeaderKey   string
    		inputHeaderValue string
    
    		inputQueryKey   string
    		inputQueryValue string
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Apr 09 14:28:39 GMT 2025
    - 14.3K bytes
    - Click Count (0)
  7. docs/uk/docs/tutorial/query-params-str-validations.md

    Використання `str | None` дозволить вашому редактору коду надавати кращу підтримку та виявляти помилки.
    
    ///
    
    ## Додаткова валідація { #additional-validation }
    
    Ми хочемо, щоб навіть якщо `q` є необов’язковим, коли його передають, його довжина не перевищувала 50 символів.
    
    ### Імпорт `Query` та `Annotated` { #import-query-and-annotated }
    
    Щоб це зробити, спочатку імпортуємо:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 25.9K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/exception/ThemeExceptionTest.java

            }
        }
    
        @Test
        public void test_throwAndCatchWithCause() {
            // Test throwing and catching exception with cause
            String expectedMessage = "Theme validation failed";
            Exception expectedCause = new IllegalStateException("Invalid state");
    
            try {
                throw new ThemeException(expectedMessage, expectedCause);
            } catch (ThemeException e) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  9. src/main/java/jcifs/internal/smb2/lease/LeaseManager.java

            }
        }
    
        /**
         * Invalidate read cache for a file path
         *
         * @param path file path
         */
        private void invalidateReadCache(String path) {
            log.debug("Invalidating read cache for path: {}", path);
    
            WeakReference<SmbFile> ref = fileCache.get(path);
            if (ref != null) {
                SmbFile file = ref.get();
                if (file != null) {
                    try {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  10. docs/de/docs/tutorial/body-nested-models.md

    * Editor-Unterstützung (Codevervollständigung, usw.), selbst für verschachtelte Modelle
    * Datenkonvertierung
    * Datenvalidierung
    * Automatische Dokumentation
    
    ## Spezielle Typen und Validierungen { #special-types-and-validation }
    
    Abgesehen von normalen einfachen Typen wie `str`, `int`, `float`, usw. können Sie komplexere einfache Typen verwenden, die von `str` erben.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 7.5K bytes
    - Click Count (0)
Back to Top