Reputation: 127
Is there any way to get non-localized key or description from the NSError
? I need some way to group errors from API requests and send them back for analytics, but it seems all descriptions or keys that we can get from the NSError
are the localized ones.
I have tried the following:
error.code : error.domain
- which is not very helpful since the domain is mostly the sameerror.userInfo[NSDebugDescriptionErrorKey] : error.userInfo[NSURLErrorKey]
- both of them are nil
, so not very helpful eitherAt this point I do not think it is possible to do it, but would love to hear other thoughts as well
Upvotes: 0
Views: 215