AbsaOSS / rn-indy-sdk

This code was starting point of https://github.com/hyperledger/indy-sdk-react-native where the work continues.
Apache License 2.0
11 stars 6 forks source link

Add iOS error hangling on JS side #29

Closed jakubkoci closed 3 years ago

jakubkoci commented 3 years ago

No changes in Aries JS framework needed. I know we try to preserve Node.js wrapper API, but I think the following attributes are just good enough:

{
  "name": "IndyError",
  "indyCode": 203,
  "indyName": "WalletAlreadyExistsError",
  "message": "This can contain anything, but idealy it'll contain original error message from given platofm"
}

Other attributes could be optional. The message attribute could be unreliable so it also could be just optional.