- Sort Score
- Num 10 results
- Language All
Results 411 - 420 of 686 for exceptions (0.26 seconds)
-
docs_src/dependencies/tutorial008d_py39.py
from fastapi import Depends, FastAPI, HTTPException app = FastAPI() class InternalError(Exception): pass def get_username(): try: yield "Rick" except InternalError: print("We don't swallow the internal error here, we raise again 😎") raise @app.get("/items/{item_id}") def get_item(item_id: str, username: str = Depends(get_username)): if item_id == "portal-gun":
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 694 bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/settings/SettingsConfigurationException.java
* under the License. */ package org.apache.maven.settings; /** * If there was an error in the settings file. * */ public class SettingsConfigurationException extends Exception { private int lineNumber; private int columnNumber; public SettingsConfigurationException(String message) { super(message); }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 1.8K bytes - Click Count (0) -
docs/en/docs/how-to/authentication-error-status-code.md
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 24 19:03:06 GMT 2025 - 1.3K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataRetrievalException.java
*/ package org.apache.maven.repository.metadata; /** * Error while retrieving repository metadata from the repository. * */ @Deprecated public class MetadataRetrievalException extends Exception { private ArtifactMetadata artifact; public MetadataRetrievalException(String message) { this(message, null, null); } public MetadataRetrievalException(Throwable cause) {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 1.6K bytes - Click Count (0) -
compat/maven-compat/src/test/java/org/apache/maven/project/ProjectClasspathTestType.java
@Deprecated class ProjectClasspathTestType extends AbstractMavenProjectTestCase { static final String DIR = "projects/scope/"; @Override @BeforeEach public void setUp() throws Exception { super.setUp(); ArtifactResolver resolver = getContainer().lookup(ArtifactResolver.class, "classpath"); DefaultArtifactDescriptorReader pomReader =Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Mar 21 04:56:21 GMT 2025 - 6.4K bytes - Click Count (0) -
docs/de/docs/how-to/custom-request-and-route.md
## Zugriff auf den Requestbody in einem Exceptionhandler { #accessing-the-request-body-in-an-exception-handler } /// tip | TippCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 10 13:54:34 GMT 2025 - 5.7K bytes - Click Count (0) -
docs_src/dependencies/tutorial008d_an_py39.py
from typing import Annotated from fastapi import Depends, FastAPI, HTTPException app = FastAPI() class InternalError(Exception): pass def get_username(): try: yield "Rick" except InternalError: print("We don't swallow the internal error here, we raise again 😎") raise @app.get("/items/{item_id}") def get_item(item_id: str, username: Annotated[str, Depends(get_username)]):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Feb 24 23:06:37 GMT 2024 - 734 bytes - Click Count (0) -
impl/maven-core/src/test/projects/lifecycle-executor/mojo-configuration/pom.xml
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 2.2K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/BuildFailureException.java
* specific language governing permissions and limitations * under the License. */ package org.apache.maven; /** * One or more builds failed. * */ public class BuildFailureException extends Exception { public BuildFailureException(String message) { super(message); } public BuildFailureException(String message, Throwable cause) { super(message, cause); }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 1.1K bytes - Click Count (0) -
tests/test_dependency_contextmanager.py
"bg": "not set", "sync_bg": "not set", } errors = [] async def get_state(): return state class AsyncDependencyError(Exception): pass class SyncDependencyError(Exception): pass class OtherDependencyError(Exception): pass async def asyncgen_state(state: dict[str, str] = Depends(get_state)): state["/async"] = "asyncgen started" yield state["/async"]
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 11.5K bytes - Click Count (0)