aliyun-tablestore-go-sdk icon indicating copy to clipboard operation
aliyun-tablestore-go-sdk copied to clipboard

Export error value, eg OTSObjectNotExist

Open thetruechar opened this issue 5 years ago • 1 comments

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

thetruechar avatar Dec 21 '19 15:12 thetruechar

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 avatar Dec 24 '19 02:12 zhoucan1990