Is there an error class that works cross platform?
# javascript
t
Is there an error class that works cross platform?
l
Idk why, but standard kotlin error classes marks red in idea. But they works. I use
Copy code
inline fun ise(message: Any?): Throwable = IllegalStateException(message?.toString() ?: "null")

inline fun iae(message: Any?): Throwable = IllegalArgumentException(message?.toString() ?: "null")
This is shorter and no red lines
t
okay that's great to know
I will just let it be red