- Sort Score
- Num 10 results
- Language All
Results 121 - 130 of 212 for raise (0.03 seconds)
-
docs/ko/docs/tutorial/handling-errors.md
{* ../../docs_src/handling_errors/tutorial001_py310.py hl[1] *} ### 코드에서 `HTTPException` 발생시키기 { #raise-an-httpexception-in-your-code } `HTTPException`은 API와 관련된 추가 데이터를 가진 일반적인 Python 예외입니다. Python 예외이므로 `return` 하는 것이 아니라 `raise` 합니다. 이는 또한, *경로 처리 함수* 내부에서 호출하는 유틸리티 함수 안에서 `HTTPException`을 `raise`하면, *경로 처리 함수*의 나머지 코드는 실행되지 않고 즉시 해당 요청이 종료되며 `HTTPException`의 HTTP 오류가 클라이언트로 전송된다는 뜻입니다.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 10.2K bytes - Click Count (0) -
docs/ja/docs/advanced/security/oauth2-scopes.md
このオブジェクトは、自身およびこれをサブ依存として使うすべての依存関係で要求されるスコープを含む `scopes` プロパティ(リスト)を持ちます。つまり、すべての「依存元」... 少し分かりにくいかもしれませんが、後で再度説明します。 `security_scopes`(`SecurityScopes` クラスのインスタンス)は、要求されたスコープを空白で連結した 1 つの文字列を返す `scope_str` も提供します(これを使います)。 後で複数箇所で再利用(raise)できるように、`HTTPException` を 1 つ作成します。 この例外には、要求されたスコープがあればそれらを空白区切りの文字列(`scope_str` を使用)として含めます。このスコープ文字列は `WWW-Authenticate` ヘッダに入れます(仕様の一部です)。 {* ../../docs_src/security/tutorial005_an_py310.py hl[106,108:116] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 16.6K bytes - Click Count (0) -
docs/en/docs/release-notes.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 endCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Apr 03 12:07:04 GMT 2026 - 631K bytes - Click Count (0) -
docs/pt/docs/tutorial/handling-errors.md
### Lance o `HTTPException` no seu código { #raise-an-httpexception-in-your-code } `HTTPException`, ao fundo, nada mais é do que a conjunção entre uma exceção comum do Python e informações adicionais relevantes para APIs. E porque é uma exceção do Python, você não **retorna** (return) o `HTTPException`, você lança o (raise) no seu código.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 10.1K bytes - Click Count (0) -
docs_src/path_operation_advanced_configuration/tutorial007_py310.py
raw_body = await request.body() try: data = yaml.safe_load(raw_body) except yaml.YAMLError: raise HTTPException(status_code=422, detail="Invalid YAML") try: item = Item.model_validate(data) except ValidationError as e: raise HTTPException(status_code=422, detail=e.errors(include_url=False))
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 797 bytes - Click Count (0) -
docs/tr/docs/how-to/authentication-error-status-code.md
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 1.3K bytes - Click Count (0) -
docs/tr/docs/advanced/websockets.md
{* ../../docs_src/websockets_/tutorial002_an_py310.py hl[68:69,82] *} /// info Bu bir WebSocket olduğu için `HTTPException` raise etmek pek anlamlı değildir; bunun yerine `WebSocketException` raise ederiz. [Spesifikasyonda tanımlanan geçerli kodlar](https://tools.ietf.org/html/rfc6455#section-7.4.1) arasından bir kapatma kodu kullanabilirsiniz. ///Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 5.9K bytes - Click Count (0) -
docs/uk/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md
Вони можуть оголошувати вимоги до запиту (наприклад, заголовки) або інші підзалежності: {* ../../docs_src/dependencies/tutorial006_an_py310.py hl[8,13] *} ### Підіймати винятки { #raise-exceptions } Ці залежності можуть `raise` винятки, так само як і звичайні залежності: {* ../../docs_src/dependencies/tutorial006_an_py310.py hl[10,15] *} ### Значення, що повертаються { #return-values }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:27:41 GMT 2026 - 4.8K bytes - Click Count (0) -
tests/connpool_test.go
if err = tx.Save(&user).Error; err != nil { t.Fatalf("No error should raise, but got %v", err) } if err = tx.First(&User{}, "name = ?", "transaction").Error; err != nil { t.Fatalf("Should find saved record, but got %v", err) } user1 := *GetUser("transaction1-1", Config{}) if err = tx.Save(&user1).Error; err != nil { t.Fatalf("No error should raise, but got %v", err) }
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sun May 25 07:40:40 GMT 2025 - 5.5K bytes - Click Count (0) -
docs/de/docs/tutorial/handling-errors.md
### Eine `HTTPException` in Ihrem Code auslösen { #raise-an-httpexception-in-your-code } `HTTPException` ist eine normale Python-Exception mit zusätzlichen Daten, die für APIs relevant sind. Weil es eine Python-Exception ist, geben Sie sie nicht zurück (`return`), sondern lösen sie aus (`raise`).Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:58:09 GMT 2026 - 10.3K bytes - Click Count (0)