- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 20 for InternalError (0.58 seconds)
-
docs_src/dependencies/tutorial008c_py310.py
app = FastAPI() class InternalError(Exception): pass def get_username(): try: yield "Rick" except InternalError: print("Oops, we didn't raise again, Britney ๐ฑ") @app.get("/items/{item_id}") def get_item(item_id: str, username: str = Depends(get_username)): if item_id == "portal-gun": raise InternalError(
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 660 bytes - Click Count (0) -
docs_src/dependencies/tutorial008c_an_py310.py
app = FastAPI() class InternalError(Exception): pass def get_username(): try: yield "Rick" except InternalError: print("Oops, we didn't raise again, Britney ๐ฑ") @app.get("/items/{item_id}") def get_item(item_id: str, username: Annotated[str, Depends(get_username)]): if item_id == "portal-gun": raise InternalError(
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 700 bytes - Click Count (0) -
docs_src/dependencies/tutorial008d_py310.py
from fastapi import Depends, FastAPI, HTTPException app = FastAPI() class InternalError(Exception): pass def get_username(): try: yield "Rick" except InternalError: print("We don't swallow the internal error here, we raise again ๐") raise @app.get("/items/{item_id}") def get_item(item_id: str, username: str = Depends(get_username)): if item_id == "portal-gun":
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 694 bytes - Click Count (0) -
docs_src/dependencies/tutorial008d_an_py310.py
from typing import Annotated from fastapi import Depends, FastAPI, HTTPException app = FastAPI() class InternalError(Exception): pass def get_username(): try: yield "Rick" except InternalError: print("We don't swallow the internal error here, we raise again ๐") raise @app.get("/items/{item_id}") def get_item(item_id: str, username: Annotated[str, Depends(get_username)]):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 734 bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/SsoProcessExceptionTest.java
String message = "SSO failed due to VM error"; InternalError error = new InternalError("JVM internal error during SSO"); SsoProcessException exception = new SsoProcessException(message, error); assertEquals(message, exception.getMessage()); assertTrue(exception.getCause() instanceof InternalError); assertTrue(exception.getCause() instanceof VirtualMachineError);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 13.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/DataStoreCrawlingExceptionTest.java
String message = "VM error during crawling"; InternalError error = new InternalError("JVM internal error"); DataStoreCrawlingException exception = new DataStoreCrawlingException(url, message, error); assertEquals(url, exception.getUrl()); assertTrue(exception.getCause() instanceof InternalError); assertTrue(exception.getCause() instanceof VirtualMachineError);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 16.6K bytes - Click Count (0) -
docs/zh/docs/tutorial/dependencies/dependencies-with-yield.md
ไฝ ๅฏไปฅไฝฟ็จ `raise` ้ๆฐๆๅบๅไธไธชๅผๅธธ๏ผ {* ../../docs_src/dependencies/tutorial008d_an_py310.py hl[17] *} ็ฐๅจๅฎขๆท็ซฏไปไผๅพๅฐๅๆ ท็ *HTTP 500 Internal Server Error* ๅๅบ๏ผไฝๆๅกๅจๆฅๅฟไธญไผๆๆไปฌ่ชๅฎไน็ `InternalError`ใ๐ ## ไฝฟ็จ `yield` ็ไพ่ต้กน็ๆง่ก { #execution-of-dependencies-with-yield } ๆง่ก้กบๅบๅคง่ดๅฆไธๅพๆ็คบใๆถ้ด่ฝดไปไธๅฐไธ๏ผๆฏไธๅ้ฝไปฃ่กจไบคไบๆๆง่กไปฃ็ ็ไธ้จๅใ ```mermaid sequenceDiagram participant client as ClientCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 12.1K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/dependencies/dependencies-with-yield.md
ไฝ ๅฏไปฅไฝฟ็จ `raise` ้ๆฐๆๅบๅไธๅไพๅค๏ผ {* ../../docs_src/dependencies/tutorial008d_an_py310.py hl[17] *} ็พๅจๅฎขๆถ็ซฏไปๆ็ฒๅพๅๆจฃ็ *HTTP 500 Internal Server Error* ๅๆ๏ผไฝไผบๆๅจ็ๆฅ่ชไธญๆๆๆๅ่ช่จ็ `InternalError`ใ๐ ## ๅซ `yield` ็็ธไพๅท่ก้ ๅบ { #execution-of-dependencies-with-yield } ๅท่ก้ ๅบๅคง่ดๅฆไธๅใๆ้ๅพไธๅพไธๆตๅ๏ผๆฏไธๆฌไปฃ่กจไธๅไบๅๆๅท่ก็จๅผ็ขผ็้จๅใ ```mermaid sequenceDiagram participant client as ClientCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 11.9K bytes - Click Count (0) -
docs/en/docs/tutorial/dependencies/dependencies-with-yield.md
{* ../../docs_src/dependencies/tutorial008d_an_py310.py hl[17] *} Now the client will get the same *HTTP 500 Internal Server Error* response, but the server will have our custom `InternalError` in the logs. ๐ ## Execution of dependencies with `yield` { #execution-of-dependencies-with-yield }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 12.6K bytes - Click Count (0) -
docs/ko/docs/tutorial/dependencies/dependencies-with-yield.md
`raise`๋ฅผ ์ฌ์ฉํ์ฌ ๋์ผํ ์์ธ๋ฅผ ๋ค์ ๋ฐ์์ํฌ ์ ์์ต๋๋ค: {* ../../docs_src/dependencies/tutorial008d_an_py310.py hl[17] *} ์ด์ ํด๋ผ์ด์ธํธ๋ ๋์ผํ *HTTP 500 Internal Server Error* ์๋ต์ ๋ฐ๊ฒ ๋์ง๋ง, ์๋ฒ ๋ก๊ทธ์๋ ์ฌ์ฉ์ ์ ์ `InternalError`๊ฐ ๊ธฐ๋ก๋ฉ๋๋ค. ๐ ## `yield`๋ฅผ ์ฌ์ฉํ๋ ์์กด์ฑ์ ์คํ ์์ { #execution-of-dependencies-with-yield } ์คํ ์์๋ ์๋ ๋ค์ด์ด๊ทธ๋จ๊ณผ ๊ฑฐ์ ๋น์ทํฉ๋๋ค. ์๊ฐ์ ์์์ ์๋๋ก ํ๋ฆ ๋๋ค. ๊ทธ๋ฆฌ๊ณ ๊ฐ ์ด์ ์ํธ ์์ฉํ๊ฑฐ๋ ์ฝ๋๋ฅผ ์คํํ๋ ๋ถ๋ถ ์ค ํ๋์ ๋๋ค. ```mermaid sequenceDiagramCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 14.3K bytes - Click Count (0)