Skip to content

[13.x] Add specific encryption exceptions for invalid payloads and unsupported ciphers #56269

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

xurshudyan
Copy link
Contributor

This PR introduces two specific exception classes for encryption errors:

  • InvalidPayloadException – thrown when the encrypted payload is malformed or invalid.
  • UnsupportedCipherException – thrown when the provided cipher or key length is not supported.

Previously, it was difficult to determine the type of encryption error except by inspecting the error message.
With these exceptions, developers can now easily identify and handle specific encryption error types programmatically.

@xurshudyan xurshudyan marked this pull request as draft July 11, 2025 14:19
@xurshudyan
Copy link
Contributor Author

xurshudyan commented Jul 11, 2025

I don't think the failing tests is related to this PR

@xurshudyan xurshudyan marked this pull request as ready for review July 11, 2025 14:35
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.

1 participant