- Sort Score
- Num 10 results
- Language All
Results 131 - 140 of 208 for raise (0.02 seconds)
-
docs/ja/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md
通常使用している依存関係の*関数*と同じものを使用することができます。 ### 依存関係の要件 これらはリクエストの要件(ヘッダのようなもの)やその他のサブ依存関係を宣言することができます: {* ../../docs_src/dependencies/tutorial006.py hl[6,11] *} ### 例外の発生 これらの依存関係は通常の依存関係と同じように、例外を`raise`発生させることができます: {* ../../docs_src/dependencies/tutorial006.py hl[8,13] *} ### 戻り値 そして、値を返すことも返さないこともできますが、値は使われません。 つまり、すでにどこかで使っている通常の依存関係(値を返すもの)を再利用することができ、値は使われなくても依存関係は実行されます:Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 2.9K bytes - Click Count (0) -
fastapi/dependencies/utils.py
except ImportError: logger.error(multipart_incorrect_install_error) raise RuntimeError(multipart_incorrect_install_error) from None except ImportError: logger.error(multipart_not_installed_error) raise RuntimeError(multipart_not_installed_error) from NoneCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 37.6K bytes - Click Count (3) -
tests/customize_field_test.go
RawBody string `gorm:"column:body"` } DB.Migrator().DropTable(&CustomColumnAndIgnoredFieldClash{}) if err := DB.AutoMigrate(&CustomColumnAndIgnoredFieldClash{}); err != nil { t.Errorf("Should not raise error: %v", err) } } func TestCustomizeField(t *testing.T) { type CustomizeFieldStruct struct { gorm.Model Name string FieldAllowCreate string `gorm:"<-:create"`
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Fri Sep 11 09:33:31 GMT 2020 - 6.9K bytes - Click Count (0) -
fastapi/security/api_key.py
headers={"WWW-Authenticate": "APIKey"}, ) def check_api_key(self, api_key: Optional[str]) -> Optional[str]: if not api_key: if self.auto_error: raise self.make_not_authenticated_error() return None return api_key class APIKeyQuery(APIKeyBase): """ API key authentication using a query parameter.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 9.6K bytes - Click Count (1) -
docs/ru/docs/tutorial/handling-errors.md
### Импортируйте `HTTPException` { #import-httpexception } {* ../../docs_src/handling_errors/tutorial001_py39.py hl[1] *} ### Вызовите `HTTPException` в своем коде { #raise-an-httpexception-in-your-code } `HTTPException` - это обычное исключение Python с дополнительными данными, актуальными для API. Поскольку это исключение Python, то его не `возвращают`, а `вызывают`.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 14.1K bytes - Click Count (0) -
docs/en/docs/advanced/advanced-dependencies.md
Before FastAPI 0.110.0, if you used a dependency with `yield`, and then you captured an exception with `except` in that dependency, and you didn't raise the exception again, the exception would be automatically raised/forwarded to any exception handlers or the internal server error handler.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Thu Nov 13 07:37:15 GMT 2025 - 9.1K bytes - Click Count (0) -
ci/official/utilities/extract_resultstore_links.py
help='Prints out lines helpful for debugging.') parsed_args = parser.parse_args() if not parsed_args.print and not parsed_args.xml_out_path: raise TypeError('`--print` or `--xml-out-path` must be specified') return parsed_args def parse_log(file_path: str, verbose: bool = False) -> ResultDictType:
Created: Tue Dec 30 12:39:10 GMT 2025 - Last Modified: Wed Nov 08 17:50:27 GMT 2023 - 10.9K bytes - Click Count (0) -
docs/ja/docs/advanced/websockets.md
クロージングコードは、<a href="https://tools.ietf.org/html/rfc6455#section-7.4.1" class="external-link" target="_blank">仕様で定義された有効なコード</a>の中から使用することができます。 将来的には、どこからでも `raise` できる `WebSocketException` が用意され、専用の例外ハンドラを追加できるようになる予定です。これは、Starlette の <a href="https://github.com/encode/starlette/pull/527" class="external-link" target="_blank">PR #527</a> に依存するものです。 /// ### 依存関係を用いてWebSocketsを試してみる
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Oct 11 17:48:49 GMT 2025 - 7.1K bytes - Click Count (0) -
scripts/translate.py
) -> None: translatable_langs = get_llm_translatable() if language: if language in translatable_langs: print(json.dumps([language])) return else: raise typer.Exit(code=1) print(json.dumps(translatable_langs)) @app.command() def commands_json( command: Annotated[str | None, typer.Option(envvar="COMMAND")] = None, ) -> None:Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 19:05:53 GMT 2025 - 34.1K bytes - Click Count (0) -
tests/query_test.go
DB.Create(&user) var result User if DB.Where("").Where("").First(&result).Error != nil { t.Errorf("Should not raise any error if searching with empty strings") } result = User{} if DB.Where(&User{}).Where("name = ?", user.Name).First(&result).Error != nil { t.Errorf("Should not raise any error if searching with empty struct") } result = User{}
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Tue Jul 22 06:21:04 GMT 2025 - 51K bytes - Click Count (0)