79559275

Date: 2025-04-07 07:18:32
Score: 0.5
Natty:
Report link

I had a similar problem. What fixed the crash for me was making the exception I throw extend IOException instead of Exception.

Exception crashing the app:

data class NetworkError(override val message: String) : Exception(message)

Fixed exception:

data class NetworkError(override val message: String) : IOException(message)

Related answer from another question:
https://stackoverflow.com/a/66816809/1726308

Reasons:
  • Blacklisted phrase (1): another question
  • Blacklisted phrase (1): stackoverflow
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Mario Kutlev