Skip to content

Improve Exception to NSError conversion #29

Open
@rickclephas

Description

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

Activity

added a commit that references this issue on Dec 26, 2021
linked a pull request that will close this issue on Dec 26, 2021
uwaisalqadri

uwaisalqadri commented on Jan 17, 2022

@uwaisalqadri

I am currently using something like this:

extension Error {
  var apiError: ApiError? {
    (self as NSError).userInfo["KotlinException"] as? ApiError
  }
}
added 3 commits that reference this issue on Feb 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Improve Exception to NSError conversion · Issue #29 · rickclephas/KMP-NativeCoroutines