Skip to content

feat!: remove the unused CacheError exception - #399

Merged
allen0099 merged 1 commit into
masterfrom
remove/130-cache-error
Sep 29, 2026
Merged

allen0099 merged 1 commit into
masterfrom
remove/130-cache-error

Conversation

@allen0099

Copy link
Copy Markdown
Owner

Fixes #130.

fastapi_cachex.exceptions.CacheError was never raised and has been deprecated since 0.3.8. This PR removes:

  • the class, its TYPE_CHECKING alias and the module __getattr__ shim;
  • the note in docs/api/types.md;
  • tests/test_exceptions.py, whose three tests covered only the shim.

CacheError was never exported from fastapi_cachex.

Migration: catch CacheXError, the base of every library exception.

Changelog: changelog.d/130.removed.md.

fastapi_cachex.exceptions.CacheError was never raised and has emitted a
DeprecationWarning since 0.3.8. Catch CacheXError instead.

Closes #130
@allen0099 allen0099 added this to the 0.4.0 milestone Sep 29, 2026
@allen0099 allen0099 added breaking-change Changes public behaviour or API; needs a minor/major release developer-experience Surprising behaviour, missing warnings or unclear errors for library users labels Sep 29, 2026
@allen0099
allen0099 merged commit 087a8ac into master Sep 29, 2026
13 of 15 checks passed
@allen0099
allen0099 deleted the remove/130-cache-error branch September 29, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change Changes public behaviour or API; needs a minor/major release developer-experience Surprising behaviour, missing warnings or unclear errors for library users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0.4.0: remove the unused CacheError exception

1 participant