- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 24 for InternalError (0.09 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) -
cmd/sts-errors.go
HTTPStatusCode: http.StatusServiceUnavailable, }, ErrSTSUpstreamError: { Code: "InternalError", Description: "An upstream service required for this operation failed - please try again or contact an administrator.", HTTPStatusCode: http.StatusInternalServerError, }, ErrSTSInternalError: { Code: "InternalError", Description: "We encountered an internal error generating credentials, please try again.",Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Feb 05 00:29:41 GMT 2025 - 6K bytes - Click Count (1) -
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)