KMP-NativeCoroutines icon indicating copy to clipboard operation
KMP-NativeCoroutines copied to clipboard

Improve Exception to NSError conversion

Open rickclephas opened this issue 4 years ago • 1 comments

  • Support NSErrors coming from Swift/ObjC
  • Support something similar to @Throws

rickclephas avatar Dec 21 '21 16:12 rickclephas

I am currently using something like this:

extension Error {
  var apiError: ApiError? {
    (self as NSError).userInfo["KotlinException"] as? ApiError
  }
}

uwaisalqadri avatar Jan 17 '22 07:01 uwaisalqadri