Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Sanders (0.18 sec)

  1. docs/en/docs/tutorial/handling-errors.md

    ## Override the default exception handlers
    
    **FastAPI** has some default exception handlers.
    
    These handlers are in charge of returning the default JSON responses when you `raise` an `HTTPException` and when the request has invalid data.
    
    You can override these exception handlers with your own.
    
    ### Override request validation exceptions
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/handling-errors.md

    ```Python
    from starlette.exceptions import HTTPException as StarletteHTTPException
    
    ```
    
    ### 复用 **FastAPI** 异常处理器
    
    FastAPI 支持先对异常进行某些处理,然后再使用 **FastAPI** 中处理该异常的默认异常处理器。
    
    从 `fastapi.exception_handlers` 中导入要复用的默认异常处理器:
    
    ```Python hl_lines="2-5  15  21"
    {!../../../docs_src/handling_errors/tutorial006.py!}
    
    ```
    
    虽然,本例只是输出了夸大其词的错误信息。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  3. docs/em/docs/tutorial/handling-errors.md

    from starlette.exceptions import HTTPException as StarletteHTTPException
    ```
    
    ### 🏤-⚙️ **FastAPI**'Ⓜ ⚠ 🐕‍🦺
    
    🚥 👆 💚 ⚙️ ⚠ ⤴️ ⏮️ 🎏 🔢 ⚠ 🐕‍🦺 ⚪️➡️ **FastAPI**, 👆 💪 🗄 & 🏤-⚙️ 🔢 ⚠ 🐕‍🦺 ⚪️➡️ `fastapi.exception_handlers`:
    
    ```Python hl_lines="2-5  15  21"
    {!../../../docs_src/handling_errors/tutorial006.py!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 8.3K bytes
    - Viewed (0)
Back to top