Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 411 - 420 of 686 for exceptions (0.26 seconds)

  1. 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)
  2. 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)
  3. docs/en/docs/how-to/authentication-error-status-code.md

    {* ../../docs_src/authentication_error_status_code/tutorial001_an_py39.py hl[9:13] *}
    
    /// tip
    
    Notice that the function returns the exception instance, it doesn't raise it. The raising is done in the rest of the internal code.
    
    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)
  4. 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)
  5. 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)
  6. 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 | Tipp
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 10 13:54:34 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  7. 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)
  8. impl/maven-core/src/test/projects/lifecycle-executor/mojo-configuration/pom.xml

            <artifactId>maven-it-plugin</artifactId>
            <version>0.1</version>
            <executions>
              <execution>
                <goals>
                  <goal>xpp3-reader</goal>
                </goals>
                <phase>generate-sources</phase>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    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)
  9. 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)
  10. 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)
Back to Top