indy-sdk-react-native icon indicating copy to clipboard operation
indy-sdk-react-native copied to clipboard

Throw an instance of Error instead of Object

Open jakubkoci opened this issue 4 years ago • 0 comments
trafficstars

This has been copied from AbsaOSS/rn-indy-sdk#30

@jakubkoci wrote: As @TimoGlastra suggested in #29:

"Indy for node throws an IndyError error class instance. I think we could just copy the IndyError from indy-sdk (https://github.com/hyperledger/indy-sdk/blob/master/wrappers/nodejs/src/IndyError.js) and maybe update it a bit to use the normal class syntax (semantically the same: https://github.com/hyperledger/indy-sdk/blob/791b12162607b5ee2e7a87648c5ba486b8fbfdd1/wrappers/nodejs/src/IndyError.js)"

jakubkoci avatar Jul 19 '21 14:07 jakubkoci