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

Provides APIs to map error message to predefined error code #77

Open
boqiu opened this issue May 20, 2021 · 1 comment
Open

Provides APIs to map error message to predefined error code #77

boqiu opened this issue May 20, 2021 · 1 comment
Assignees

Comments

@boqiu
Copy link
Collaborator

boqiu commented May 20, 2021

Currently, it is very hard for client to handle the errors returned by SDK. So, SDK could provide API to map error message to error code or return error code along with error message. So that:

  1. Client could handle all errors properly.
  2. Support i18n on UI.

Moreover, SDK should add necessary documents or comments to clarify the possible root cause and solutions for each error code or message.

In the end, this is a common requirements for all SDKs.

@Pana
Copy link
Member

Pana commented Jun 7, 2021

I have collected an error list for estimate and sendRawTransaction we will design an error code feature to solve this problem

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

3 participants