with a multiplatform project
apparently typealiasing an expected exception doesn’t really work
If I do the above and than try to
Copy code
try {
// ...
} catch(e: NetworkError) {
}
I get this error:
Copy code
Throwable type mismatch: actual type is 'kotlinx.io.IOException'.
It isn’t a big deal, I can use
kotlinx.io.IOException
directly, I just wanted to ask if this is an intentional limitation or if there’s something going on here, cheers
Daniele Segato
12/05/2024, 8:07 AM
I should probably mention that this error isn’t always showing up..
This is what I have, 3 modules:
• shared:network
• shared:api
• shared:usage
so in the network module I defined the typealias
the api module declare an API like this: