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 enumeration #21

Open
eamanola opened this issue Apr 11, 2022 · 1 comment
Open

Error enumeration #21

eamanola opened this issue Apr 11, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@eamanola
Copy link

Hi,

As the title says. Looking at https://docs.handcash.dev/errors/ there is a clear list of api errors.

However thinking forward, it might be useful to enumerate the errors, so clients can check the enumeration, instead of the message.

Either name, or a custom field, eg code or similar, would work.

Thanks in advance.

@rafa-js
Copy link
Contributor

rafa-js commented Apr 18, 2022

Hi @eamanola, thanks for your comment!

We came up with the same proposal for our internal API and it also affects HandCash Connect. It will be exactly what you described, some error code that describes exactly one context. Also, we'll improve the documentation so each specifies the possible errors for endpoint/function.

I'll keep this issue open to report the progress.

Thanks!

@rafa-js rafa-js added the enhancement New feature or request label May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants