indy-sdk-react-native
indy-sdk-react-native copied to clipboard
Throw an instance of Error instead of Object
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)"