- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 56 for raise (0.15 sec)
-
docs/em/docs/tutorial/dependencies/dependencies-with-yield.md
Note over client,tasks: Can raise exception for dependency, handled after response is sent Note over client,operation: Can raise HTTPException and can change the response client ->> dep: Start request Note over dep: Run code up to yield opt raise dep -->> handler: Raise HTTPException handler -->> client: HTTP error response dep -->> dep: Raise other exception end
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 8.6K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/dependencies-with-yield.md
Note over client,operation: Can raise exceptions, including HTTPException client ->> dep: Start request Note over dep: Run code up to yield opt raise Exception dep -->> handler: Raise Exception handler -->> client: HTTP error response end dep ->> operation: Run dependency, e.g. DB session opt raise operation -->> dep: Raise Exception (e.g. HTTPException) opt handle
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Feb 24 23:06:37 GMT 2024 - 14.1K bytes - Viewed (0) -
docs/en/docs/tutorial/handling-errors.md
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.1K bytes - Viewed (0) -
docs/em/docs/tutorial/handling-errors.md
โก๏ธ ๐ฌ ๐ โ๏ธ ๐ โ `UnicornException` ๐ ๐ (โ๏ธ ๐ ๐ โ๏ธ) ๐ช `raise`. & ๐ ๐ ๐ต ๐ โ ๐ โฎ๏ธ FastAPI. ๐ ๐ช ๐ฎ ๐ โ ๐โ๐ฆบ โฎ๏ธ `@app.exception_handler()`: ```Python hl_lines="5-7 13-18 24" {!../../../docs_src/handling_errors/tutorial003.py!} ``` ๐ฅ, ๐ฅ ๐ ๐จ `/unicorns/yolo`, *โก ๐ ๏ธ* ๐ `raise` `UnicornException`. โ๏ธ โซ๏ธ ๐ ๐ต `unicorn_exception_handler`.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 8.3K bytes - Viewed (0) -
docs/ja/docs/tutorial/handling-errors.md
ใใชใ๏ผใพใใฏไฝฟ็จใใฆใใใฉใคใใฉใช๏ผใ`raise`ใใใใใใใชใใซในใฟใ ไพๅค`UnicornException`ใใใใจใใพใใใใ ใใใฆใใใฎไพๅคใFastAPIใงใฐใญใผใใซใซๅฆ็ใใใใจๆใใพใใ ใซในใฟใ ไพๅคใใณใใฉใ`@app.exception_handler()`ใง่ฟฝๅ ใใใใจใใงใใพใ: ```Python hl_lines="5 6 7 13 14 15 16 17 18 24" {!../../../docs_src/handling_errors/tutorial003.py!} ``` ใใใงใ`/unicorns/yolo`ใใชใฏใจในใใใใจใ*path operation*ใฏ`UnicornException`ใ`raise`ใใพใใ ใใใใใใใฏ`unicorn_exception_handler`ใงๅฆ็ใใใพใใ
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 11.8K bytes - Viewed (0) -
docs/em/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md
๐ ๐ช โ๏ธ ๐ ๐ *๐ข* ๐ โ๏ธ ๐. ### ๐ ๐ ๐ซ ๐ช ๐ฃ ๐จ ๐ (๐ ๐) โ๏ธ ๐ ๐ง-๐: ```Python hl_lines="6 11" {!../../../docs_src/dependencies/tutorial006.py!} ``` ### ๐ค โ ๐ซ ๐ ๐ช `raise` โ , ๐ ๐ ๐: ```Python hl_lines="8 13" {!../../../docs_src/dependencies/tutorial006.py!} ``` ### ๐จ ๐ฒ & ๐ซ ๐ช ๐จ ๐ฒ โ๏ธ ๐ซ, ๐ฒ ๐ ๐ซ โ๏ธ.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Apr 01 09:26:04 GMT 2023 - 2.2K bytes - Viewed (0) -
docs/zh/docs/tutorial/handling-errors.md
``` ### ่งฆๅ `HTTPException` `HTTPException` ๆฏ้ขๅคๅ ๅซไบๅ API ๆๅ ณๆฐๆฎ็ๅธธ่ง Python ๅผๅธธใ ๅ ไธบๆฏ Python ๅผๅธธ๏ผๆไปฅไธ่ฝ `return`๏ผๅช่ฝ `raise`ใ ๅฆๅจ่ฐ็จ*่ทฏๅพๆไฝๅฝๆฐ*้็ๅทฅๅ ทๅฝๆฐๆถ๏ผ่งฆๅไบ `HTTPException`๏ผFastAPI ๅฐฑไธๅ็ปง็ปญๆง่ก*่ทฏๅพๆไฝๅฝๆฐ*ไธญ็ๅ็ปญไปฃ็ ๏ผ่ๆฏ็ซๅณ็ปๆญข่ฏทๆฑ๏ผๅนถๆ `HTTPException` ็ HTTP ้่ฏฏๅ้่ณๅฎขๆท็ซฏใ ๅจไป็ปไพ่ต้กนไธๅฎๅ จ็็ซ ่ไธญ๏ผๆจๅฏไปฅไบ่งฃๆดๅค็จ `raise` ๅผๅธธไปฃๆฟ `return` ๅผ็ไผๅฟใ ๆฌไพไธญ๏ผๅฎขๆท็ซฏ็จ `ID` ่ฏทๆฑ็ `item` ไธๅญๅจๆถ๏ผ่งฆๅ็ถๆ็ ไธบ `404` ็ๅผๅธธ๏ผ ```Python hl_lines="11"
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 8.4K bytes - Viewed (0) -
docs/ko/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md
!!! tip "ํ" ๊ฐ๋ฅํ๋ค๋ฉด `Annotated`๊ฐ ๋ฌ๋ฆฐ ๋ฒ์ ์ ๊ถ์ฅํฉ๋๋ค. ```Python hl_lines="6 11" {!> ../../../docs_src/dependencies/tutorial006.py!} ``` ### ์ค๋ฅ ๋ฐ์์ํค๊ธฐ ๋ค์ ์์กด์ฑ์ ๊ธฐ์กด ์์กด์ฑ๊ณผ ๋์ผํ๊ฒ ์์ธ๋ฅผ `raise`๋ฅผ ์ผ์ผํฌ ์ ์์ต๋๋ค: === "Python 3.9+" ```Python hl_lines="10 15" {!> ../../../docs_src/dependencies/tutorial006_an_py39.py!} ``` === "Python 3.8+" ```Python hl_lines="9 14"
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sun Feb 11 13:49:45 GMT 2024 - 4.7K bytes - Viewed (0) -
docs/ja/docs/tutorial/dependencies/dependencies-with-yield.md
Note over client,tasks: Can raise exception for dependency, handled after response is sent Note over client,operation: Can raise HTTPException and can change the response client ->> dep: Start request Note over dep: Run code up to yield opt raise dep -->> handler: Raise HTTPException handler -->> client: HTTP error response dep -->> dep: Raise other exception end
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 12.5K bytes - Viewed (0) -
docs/en/docs/reference/exceptions.md
# Exceptions - `HTTPException` and `WebSocketException` These are the exceptions that you can raise to show errors to the client. When you raise an exception, as would happen with normal Python, the rest of the execution is aborted. This way you can raise these exceptions from anywhere in the code to abort a request and show the error to the client. You can use: * `HTTPException` * `WebSocketException`
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 597 bytes - Viewed (0)