How do I map NSError to kotlin Exception and throw...
# kotlin-native
h
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
You can wrap it manually to
ObjCErrorException
, e.g.
Copy code
throw ObjCErrorException(nsError.description, nsError)