- Sort Score
- Num 10 results
- Language All
Results 141 - 150 of 198 for exec (0.02 seconds)
-
tests/test_validation_error_context.py
raise exc @app.exception_handler(ResponseValidationError) @sub_app.exception_handler(ResponseValidationError) async def response_validation_handler(_: Request, exc: ResponseValidationError): captured_exception.capture(exc) raise exc @app.exception_handler(WebSocketRequestValidationError) @sub_app.exception_handler(WebSocketRequestValidationError) async def websocket_validation_handler(
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 06 12:21:57 GMT 2025 - 4.7K bytes - Click Count (0) -
docs_src/handling_errors/tutorial004_py39.py
@app.exception_handler(StarletteHTTPException) async def http_exception_handler(request, exc): return PlainTextResponse(str(exc.detail), status_code=exc.status_code) @app.exception_handler(RequestValidationError) async def validation_exception_handler(request, exc: RequestValidationError): message = "Validation errors:" for error in exc.errors(): message += f"\nField: {error['loc']}, Error: {error['msg']}"
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 920 bytes - Click Count (0) -
docs_src/handling_errors/tutorial006_py39.py
async def custom_http_exception_handler(request, exc): print(f"OMG! An HTTP error!: {repr(exc)}") return await http_exception_handler(request, exc) @app.exception_handler(RequestValidationError) async def validation_exception_handler(request, exc): print(f"OMG! The client sent invalid data!: {exc}") return await request_validation_exception_handler(request, exc) @app.get("/items/{item_id}")
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 928 bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultPackagingRegistry.java
List<PluginExecution> execs = new ArrayList<>(); List<Dependency> deps = new ArrayList<>(); Plugin existing = plugins.get(key); if (existing != null) { if (version == null) { version = existing.getVersion(); } execs.addAll(existing.getExecutions());
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jan 24 17:29:44 GMT 2025 - 7.8K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/project/collector/MultiModuleCollectionStrategy.java
Predicate<Exception> pluginArtifactNotFoundException = exc -> exc instanceof PluginManagerException && exc.getCause() instanceof PluginResolutionException && exc.getCause().getCause() instanceof ArtifactResolutionException && exc.getCause().getCause().getCause() instanceof ArtifactNotFoundException;Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Sat Apr 05 11:52:05 GMT 2025 - 9.1K bytes - Click Count (0) -
integration-tests/gradle/gradlew.bat
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" @rem Find java.exe if defined JAVA_HOME goto findJavaFromJavaHome set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 if %ERRORLEVEL% equ 0 goto execute echo. 1>&2 echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 echo. 1>&2
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Jul 21 19:14:29 GMT 2025 - 2.8K bytes - Click Count (0) -
docs_src/handling_errors/tutorial005_py39.py
app = FastAPI() @app.exception_handler(RequestValidationError) async def validation_exception_handler(request: Request, exc: RequestValidationError): return JSONResponse( status_code=422, content=jsonable_encoder({"detail": exc.errors(), "body": exc.body}), ) class Item(BaseModel): title: str size: int @app.post("/items/") async def create_item(item: Item):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 626 bytes - Click Count (0) -
api/go1.20.txt
pkg net/netip, func IPv6Loopback() Addr #51777 pkg net, type Dialer struct, ControlContext func(context.Context, string, string, syscall.RawConn) error #55301 pkg os/exec, type Cmd struct, Cancel func() error #50436 pkg os/exec, type Cmd struct, WaitDelay time.Duration #50436 pkg os/exec, var ErrWaitDelay error #50436 pkg path/filepath, func IsLocal(string) bool #56219 pkg path/filepath, var SkipAll error #47209
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Fri Feb 17 21:23:32 GMT 2023 - 602.6K bytes - Click Count (0) -
gradlew.bat
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" @rem Find java.exe if defined JAVA_HOME goto findJavaFromJavaHome set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 if %ERRORLEVEL% equ 0 goto execute echo. 1>&2 echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 echo. 1>&2
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Sep 18 20:55:41 GMT 2025 - 2.7K bytes - Click Count (0) -
docs_src/custom_request_and_route/tutorial002_an_py39.py
try: return await original_route_handler(request) except RequestValidationError as exc: body = await request.body() detail = {"errors": exc.errors(), "body": body.decode()} raise HTTPException(status_code=422, detail=detail) return custom_route_handler app = FastAPI()Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 10 08:55:32 GMT 2025 - 947 bytes - Click Count (0)