- Sort Score
- Num 10 results
- Language All
Results 131 - 140 of 414 for raises (0.04 seconds)
-
src/Make.dist
# Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # Run go tool dist to install a command. # The -v causes dist to print the name of each directory as it runs. # The -vv causes dist to print each build command as it runs. # go tool dist clean cleans all directories, not just this one, # but it's as close as we can get. # Default target (first). install:
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Wed Feb 08 20:26:47 GMT 2012 - 553 bytes - Click Count (0) -
fastapi/concurrency.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 1.5K bytes - Click Count (0) -
docs_src/custom_request_and_route/tutorial002_an_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 10 08:55:32 GMT 2025 - 974 bytes - Click Count (0) -
docs/en/docs/advanced/security/oauth2-scopes.md
{* ../../docs_src/security/tutorial005_an_py310.py hl[47,117:129] *} ## Verify the `scopes` { #verify-the-scopes } We now verify that all the scopes required, by this dependency and all the dependants (including *path operations*), are included in the scopes provided in the token received, otherwise raise an `HTTPException`.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 13.4K bytes - Click Count (0) -
docs/pt/docs/tutorial/dependencies/dependencies-with-yield.md
### Sempre levante (`raise`) em Dependências com `yield` e `except` { #always-raise-in-dependencies-with-yield-and-except } Se você capturar uma exceção em uma dependência com `yield`, a menos que você esteja levantando outra `HTTPException` ou coisa parecida, **você deve relançar a exceção original**. Você pode relançar a mesma exceção utilizando `raise`:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 13.8K bytes - Click Count (0) -
docs_src/dependencies/tutorial013_an_py310.py
with Session(engine) as session: yield session def get_user(user_id: int, session: Annotated[Session, Depends(get_session)]): user = session.get(User, user_id) if not user: raise HTTPException(status_code=403, detail="Not authorized") def generate_stream(query: str): for ch in query: yield ch time.sleep(0.1) @app.get("/generate", dependencies=[Depends(get_user)])
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Sep 29 03:29:38 GMT 2025 - 937 bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/TestThread.java
} if (uncaughtThrowable != null) { throw new AssertionError("Uncaught throwable in " + getName(), uncaughtThrowable); } } /** * Causes this thread to call the named void method, and asserts that the call returns normally. */ public void callAndAssertReturns(String methodName, Object... arguments) throws Exception { checkNotNull(methodName);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 11.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/TestThread.java
} if (uncaughtThrowable != null) { throw new AssertionError("Uncaught throwable in " + getName(), uncaughtThrowable); } } /** * Causes this thread to call the named void method, and asserts that the call returns normally. */ public void callAndAssertReturns(String methodName, Object... arguments) throws Exception { checkNotNull(methodName);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 11.5K bytes - Click Count (0) -
docs/ko/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md
### 의존성 요구사항 { #dependency-requirements } (헤더같은) 요청 요구사항이나 하위-의존성을 선언할 수 있습니다: {* ../../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: Fri Mar 20 14:06:26 GMT 2026 - 3.4K bytes - Click Count (0) -
docs/zh/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md
路径装饰器依赖项也可以使用普通的依赖项*函数*。 ### 依赖项的需求项 { #dependency-requirements } 路径装饰器依赖项可以声明请求的需求项(比如响应头)或其他子依赖项: {* ../../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: Fri Mar 20 17:06:37 GMT 2026 - 2.8K bytes - Click Count (0)