Skip to content

Implement Structured MemcachedError for Enhanced Error Handling #30

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

Closed
dkz2 opened this issue Aug 10, 2023 · 0 comments
Closed

Implement Structured MemcachedError for Enhanced Error Handling #30

dkz2 opened this issue Aug 10, 2023 · 0 comments

Comments

@dkz2
Copy link
Contributor

dkz2 commented Aug 10, 2023

To ensure a more structured and intuitive error handling mechanism, we will be implementing a MemcachedError modeled after a pattern successfully utilized in the NIO world. The aim is to shift from relying on string description of errors to a more forward evolving type that retains as much relevant info as possible. The proposed MemcachedError structure will offer a Code type that represents high level error kinds coupled with a detailed description that includes the error message, cause, and exact source location.This approach will help developers quickly identify the nature and origin of the error.

dkz2 added a commit to dkz2/swift-memcache-gsoc that referenced this issue Aug 11, 2023
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

No branches or pull requests

1 participant