Skip to content

Export CacheXError, BackendNotFoundError and RequestNotFoundError from the package #160

Description

@allen0099

Part of #113.

@cache and the proxies raise CacheXError, BackendNotFoundError and RequestNotFoundError, but none of them is exported from fastapi_cachex, while every session and state exception is. Callers have to import them from fastapi_cachex.exceptions.

Proposal

Re-export the three exceptions from fastapi_cachex/__init__.py, next to LockTimeoutError.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions