Skip to content

feat(exception)!: declare RedisClusterException on most methods #1739

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 14, 2025

Conversation

BigBadBassMan
Copy link
Contributor

As per phpredis docs nearly every cluster method can lead to a RedisClusterException, depending on the state of the queried cluster (i.e. cluster in failover, nodes down, ...).

This is not easily recognizable to developers, especially when relying on the correctnes of the method declarations and their @throws annotation.

This PR tries to fix that, introducing @throws RedisClusterException on any method, that communicates with the connected cluster.

@isfedorov isfedorov merged commit 28a0a2e into JetBrains:master May 14, 2025
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants