Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for Exceptionhandler (0.07 sec)

  1. impl/maven-core/src/main/java/org/apache/maven/exception/ExceptionHandler.java

     * under the License.
     */
    package org.apache.maven.exception;
    
    /**
     * Transform an exception into useful end-user message.
     *
     * @since 3.0-alpha-3
     */
    public interface ExceptionHandler {
        ExceptionSummary handleException(Throwable e);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1023 bytes
    - Viewed (0)
  2. impl/maven-core/src/test/java/org/apache/maven/lifecycle/LifecycleExecutorSubModulesTest.java

        @Inject
        private LifeCyclePluginAnalyzer lifeCyclePluginAnalyzer;
    
        @Inject
        private LifecycleTaskSegmentCalculator lifeCycleTaskSegmentCalculator;
    
        @Inject
        private ExceptionHandler exceptionHandler;
    
        protected String getProjectsDirectory() {
            return "src/test/projects/lifecycle-executor";
        }
    
        @Test
        void testCreation() throws Exception {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. impl/maven-core/src/test/java/org/apache/maven/exception/DefaultExceptionHandlerTest.java

            MojoExecutionException mojoEx =
                    new MojoExecutionException("Error executing Jetty: Unable to establish loopback connection", ioEx);
    
            ExceptionHandler exceptionHandler = new DefaultExceptionHandler();
            ExceptionSummary exceptionSummary = exceptionHandler.handleException(mojoEx);
    
            String expectedReference = "http://cwiki.apache.org/confluence/display/MAVEN/ConnectException";
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  4. docs/de/docs/how-to/custom-request-and-route.md

    Aufgrund unserer Änderungen in `GzipRequest.body` wird der Requestbody jedoch bei Bedarf automatisch dekomprimiert, wenn er von **FastAPI** geladen wird.
    
    ## Zugriff auf den Requestbody in einem Exceptionhandler { #accessing-the-request-body-in-an-exception-handler }
    
    /// tip | Tipp
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 13:54:34 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  5. impl/maven-core/src/site/apt/index.apt

     evaluate plugin parameters values during Mojo configuration,
    
     * <<<ExceptionHandler>>> component ({{{./apidocs/org/apache/maven/exception/ExceptionHandler.html}javadoc}}),
     with its <<<DefaultExceptionHandler>>> implementation
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. tests/test_validation_error_context.py

    app.mount(path="/sub", app=sub_app)
    
    
    @app.exception_handler(RequestValidationError)
    @sub_app.exception_handler(RequestValidationError)
    async def request_validation_handler(request: Request, exc: RequestValidationError):
        captured_exception.capture(exc)
        raise exc
    
    
    @app.exception_handler(ResponseValidationError)
    @sub_app.exception_handler(ResponseValidationError)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 06 12:21:57 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  7. docs_src/handling_errors/tutorial006_py39.py

    from starlette.exceptions import HTTPException as StarletteHTTPException
    
    app = FastAPI()
    
    
    @app.exception_handler(StarletteHTTPException)
    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):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 928 bytes
    - Viewed (0)
  8. docs_src/handling_errors/tutorial004_py39.py

    from starlette.exceptions import HTTPException as StarletteHTTPException
    
    app = FastAPI()
    
    
    @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:"
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 920 bytes
    - Viewed (0)
  9. docs_src/handling_errors/tutorial003_py39.py

    from fastapi import FastAPI, Request
    from fastapi.responses import JSONResponse
    
    
    class UnicornException(Exception):
        def __init__(self, name: str):
            self.name = name
    
    
    app = FastAPI()
    
    
    @app.exception_handler(UnicornException)
    async def unicorn_exception_handler(request: Request, exc: UnicornException):
        return JSONResponse(
            status_code=418,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 626 bytes
    - Viewed (0)
  10. docs_src/handling_errors/tutorial005_py39.py

    from fastapi.encoders import jsonable_encoder
    from fastapi.exceptions import RequestValidationError
    from fastapi.responses import JSONResponse
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    @app.exception_handler(RequestValidationError)
    async def validation_exception_handler(request: Request, exc: RequestValidationError):
        return JSONResponse(
            status_code=422,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 626 bytes
    - Viewed (0)
Back to top