Skip to content
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

**Use a specific error type for deserialization failures.** #2070

Open
drazisil opened this issue Aug 21, 2024 · 0 comments
Open

**Use a specific error type for deserialization failures.** #2070

drazisil opened this issue Aug 21, 2024 · 0 comments
Assignees

Comments

@drazisil
Copy link
Collaborator

          **Use a specific error type for deserialization failures.**

Throwing a generic error may not provide enough context for error handling upstream. Consider defining a specific error type for deserialization failures.

Define a custom error class, e.g., DeserializationError, for better context.

Originally posted by @coderabbitai[bot] in #2037 (comment)

@drazisil drazisil self-assigned this Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant