Join Slack
Powered by
How do I map NSError to kotlin Exception and throw...
# kotlin-native
h
hmole
10/17/2018, 9:05 AM
How do I map NSError to kotlin Exception and throw it? This says it's not implmemented yet.
https://github.com/JetBrains/kotlin-native/blob/master/OBJC_INTEROP.md#errors-and-exceptions
s
svyatoslav.scherbina
10/17/2018, 9:09 AM
You can wrap it manually to
ObjCErrorException
, e.g.
Copy code
throw ObjCErrorException(nsError.description, nsError)
30
Views
Open in Slack
Previous
Next