Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 75 for excl (0.09 sec)

  1. fastapi/exception_handlers.py

    
    async def http_exception_handler(request: Request, exc: HTTPException) -> Response:
        headers = getattr(exc, "headers", None)
        if not is_body_allowed_for_status_code(exc.status_code):
            return Response(status_code=exc.status_code, headers=headers)
        return JSONResponse(
            {"detail": exc.detail}, status_code=exc.status_code, headers=headers
        )
    
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Jun 11 19:08:14 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. docs_src/handling_errors/tutorial006.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}")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Aug 09 11:10:33 UTC 2020
    - 928 bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/util/mime.map

    application/access             mdf              # Microsoft Access
    #application/excel              xls              # Microsoft Excel
    application/vnd.ms-excel       xls              # Microsoft Excel
    application/font-tdpfr         pfr              # TrueDoc Portable Font Resource
    application/futuresplash       spl              # Macromedia Flash
    application/hep                hep              # Hummingbird Host Explorer Profiles
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 5.9K bytes
    - Viewed (0)
  4. docs_src/handling_errors/tutorial004.py

    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):
        return PlainTextResponse(str(exc), status_code=400)
    
    
    @app.get("/items/{item_id}")
    async def read_item(item_id: int):
        if item_id == 3:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 762 bytes
    - Viewed (0)
  5. docs_src/handling_errors/tutorial005.py

    app = FastAPI()
    
    
    @app.exception_handler(RequestValidationError)
    async def validation_exception_handler(request: Request, exc: RequestValidationError):
        return JSONResponse(
            status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,
            content=jsonable_encoder({"detail": exc.errors(), "body": exc.body}),
        )
    
    
    class Item(BaseModel):
        title: str
        size: int
    
    
    @app.post("/items/")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 667 bytes
    - Viewed (0)
  6. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/collections/PathVisitor.java

        }
    
        @Override
        public FileVisitResult postVisitDirectory(Path dir, @Nullable IOException exc) {
            if (exc != null) {
                if (!(exc instanceof FileSystemLoopException)) {
                    throw new GradleException(String.format("Could not read directory path '%s'.", dir), exc);
                }
            } else {
                if (postfix) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  7. 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;
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Sep 22 09:07:17 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  8. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/impl/DirectorySnapshotterStatistics.java

            public final FileVisitResult visitFileFailed(Path file, IOException exc) {
                collector.recordVisitFileFailed();
                return doVisitFileFailed(file, exc);
            }
    
            protected abstract FileVisitResult doVisitFileFailed(Path file, IOException exc);
    
            @Override
            public final FileVisitResult postVisitDirectory(Path dir, IOException exc) {
                return doPostVisitDirectory(dir, exc);
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 00:47:05 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  9. src/runtime/memclr_s390x.s

    clearmt32:
    	CMP	R5, $256
    	BLT	clearlt256
    	XC	$256, 0(R4), 0(R4)
    	ADD	$256, R4
    	ADD	$-256, R5
    	BR	clearmt32
    clearlt256:
    	CMPBEQ	R5, $0, done
    	ADD	$-1, R5
    	EXRL	$memclr_exrl_xc<>(SB), R5
    done:
    	RET
    
    // DO NOT CALL - target for exrl (execute relative long) instruction.
    TEXT memclr_exrl_xc<>(SB),NOSPLIT|NOFRAME,$0-0
    	XC	$1, 0(R4), 0(R4)
    	MOVD	$0, 0(R0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 29 19:11:07 UTC 2021
    - 2K bytes
    - Viewed (0)
  10. src/main/resources/fess_config.properties

    application/vnd.ms-excel=excel\n\
    application/vnd.ms-excel.sheet.2=excel\n\
    application/vnd.ms-excel.sheet.3=excel\n\
    application/vnd.ms-excel.sheet.4=excel\n\
    application/vnd.ms-excel.workspace.3=excel\n\
    application/vnd.ms-excel.workspace.4=excel\n\
    application/vnd.openxmlformats-officedocument.spreadsheetml.sheet=excel\n\
    application/vnd.ms-powerpoint=powerpoint\n\
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Apr 11 02:34:53 UTC 2024
    - 30.6K bytes
    - Viewed (0)
Back to top