Unable throw a Swift.Error in Android/Java: org.me.android.ResultError cannot be cast to java.lang.Throwable

(wdb) #1

IDE: Fire
Version: Version (develop) built on talax, 20190503-102703. Commit dc2f219.
Target (If relevant): Android
I am having an error definition like:

public enum ResultError: Swift.Error {
    case invalid(String)
    case parseError
    case networkError
    case notFound
    case cancelled

if I then try to throw it like throw ResultError.parseError I am getting the following error: org.me.matrixsenseandroid.ResultError cannot be cast to java.lang.Throwable

Expected Behavior:
I would expect to be able to throw a Swift.Error in Android/Java

Actual Behavior:
The above listed error is being thrown

Please find a reproducible project attachedBugReport4.zip (251.7 KB)

(RemObjects) #2

Thanks, logged as bugs://82523

(RemObjects) #3

bugs://82523 got closed with status fixed.