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

Export error value, eg OTSObjectNotExist #63

Open
thetruechar opened this issue Dec 21, 2019 · 1 comment
Open

Export error value, eg OTSObjectNotExist #63

thetruechar opened this issue Dec 21, 2019 · 1 comment
Assignees

Comments

@thetruechar
Copy link
Contributor

SDK should export error value stead of let users using string compare err.Error()

@zhoucan1990
Copy link
Contributor

Thanks for your suggestion! We'll extend OTSError to provide an unwrap interface like Go 1.13 errors, and unwrap will return a certain error value.

@zhoucan1990 zhoucan1990 self-assigned this Dec 24, 2019
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