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

Better success and error handling #3

Open
drazik opened this issue Apr 18, 2023 · 0 comments
Open

Better success and error handling #3

drazik opened this issue Apr 18, 2023 · 0 comments

Comments

@drazik
Copy link
Contributor

drazik commented Apr 18, 2023

At the moment, it is hard-coded that the success response is a ServerResponse<ResponseDataType> and the error response is a ServerError. But it should be decoupled, so we can use the lib in different contexts.

The success and error types should be given by the user.

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