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

error_code enum #17

Closed
OlivierLDff opened this issue Feb 5, 2021 · 2 comments
Closed

error_code enum #17

OlivierLDff opened this issue Feb 5, 2021 · 2 comments

Comments

@OlivierLDff
Copy link

OlivierLDff commented Feb 5, 2021

Hi, i started to use your project.
Why isn't there any enum for common error?

enum error_code {
    parse_error = -32700,
    invalid_request = -32600,
    method_not_found = -32601,
    invalid_params = -32602,
    internal_error = -32603,
  };

Have a nice day!

@cinemast
Copy link
Contributor

cinemast commented Feb 6, 2021

Good question. I will add one.

@cinemast
Copy link
Contributor

Thanks for the idea.

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

2 participants