- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 2,450 for exceptions (0.05 sec)
-
tests/test_validation_error_context.py
captured_exception.exception = None try: client.get("/items/") except Exception: pass assert captured_exception.exception is not None error_str = str(captured_exception.exception) assert "get_item" in error_str assert "/items/" in error_str def test_websocket_validation_error_includes_endpoint_context(): captured_exception.exception = None try:Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 06 12:21:57 UTC 2025 - 4.7K bytes - Viewed (0) -
fastapi/security/open_id_connect_url.py
from typing import Annotated, Optional from annotated_doc import Doc from fastapi.openapi.models import OpenIdConnect as OpenIdConnectModel from fastapi.security.base import SecurityBase from starlette.exceptions import HTTPException from starlette.requests import Request from starlette.status import HTTP_401_UNAUTHORIZED class OpenIdConnect(SecurityBase): """ OpenID Connect authentication class. An instance of it would be used as a
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 3.1K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallKotlinTest.kt
) val responseB = client.newCall(requestB).execute() assertThat(responseB.body.string()).isEqualTo("b") assertThat(server.takeRequest().exchangeIndex).isEqualTo(0) } /** Confirm suppressed exceptions that occur while connecting are returned. */ @Test fun connectExceptionsAreReturnedAsSuppressed() { val proxySelector = RecordingProxySelector()Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 8.4K bytes - Viewed (0) -
docs/es/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md
Pueden declarar requisitos de request (como headers) u otras sub-dependencias: {* ../../docs_src/dependencies/tutorial006_an_py39.py hl[8,13] *} ### Lanzar excepciones { #raise-exceptions } Estas dependencias pueden `raise` excepciones, igual que las dependencias normales: {* ../../docs_src/dependencies/tutorial006_an_py39.py hl[10,15] *} ### Valores de retorno { #return-values }
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 16 16:33:45 UTC 2025 - 3.1K bytes - Viewed (0) -
.teamcity/src/main/kotlin/configurations/FunctionalTest.kt
) failureConditions { // JavaExecDebugIntegrationTest.debug session fails without debugger might cause JVM crash // Some soak tests produce OOM exceptions // There are also random worker crashes for some tests. // We have test-retry to handle the crash in tests javaCrash = false } }) fun getTestTaskName(Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Thu Oct 09 05:26:45 UTC 2025 - 5.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharSourceTest.java
int suppressed = runSuppressionFailureTest(in, out); assertThat(suppressed).isAtMost(1); } } } /** * @return the number of exceptions that were suppressed on the expected thrown exception */ private static int runSuppressionFailureTest(CharSource in, CharSink out) { try { in.copyTo(out); fail(); } catch (IOException expected) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 11.5K bytes - Viewed (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/HelpTest.java
} @Test void testHelpExecuteReturnsZero() throws Exception { UpgradeContext context = createMockContext(); int result = help.execute(context); assertEquals(0, result, "Help goal should return 0 (success)"); } @Test void testHelpExecuteDoesNotThrow() throws Exception { UpgradeContext context = createMockContext();Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Aug 29 12:46:51 UTC 2025 - 3.4K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/NullabilityBreakingChangesRule.groovy
handleAnnotation(descriptor) return null } @Override MethodVisitor visitMethod(int access, String name, String methodDescriptor, String signature, String[] exceptions) { if (behaviorName == name && methodDescriptor == behavior.getSignature()) { return new MethodVisitor(AsmConstants.ASM_LEVEL) { @Override
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Mon Oct 27 09:26:32 UTC 2025 - 15.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharSourceTest.java
int suppressed = runSuppressionFailureTest(in, out); assertThat(suppressed).isAtMost(1); } } } /** * @return the number of exceptions that were suppressed on the expected thrown exception */ private static int runSuppressionFailureTest(CharSource in, CharSink out) { try { in.copyTo(out); fail(); } catch (IOException expected) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 11.5K bytes - Viewed (0) -
tests/test_filter_pydantic_sub_model_pv2.py
from typing import Optional import pytest from dirty_equals import HasRepr from fastapi import Depends, FastAPI from fastapi.exceptions import ResponseValidationError from fastapi.testclient import TestClient from inline_snapshot import snapshot @pytest.fixture(name="client") def get_client(): from pydantic import BaseModel, ValidationInfo, field_validator app = FastAPI() class ModelB(BaseModel):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 6.6K bytes - Viewed (0)