I have an I/O function called from `<http://Dispat...
# compose-desktop
m
I have an I/O function called from
<http://Dispatchers.IO|Dispatchers.IO>
, which throws a
kotlinx.serialization.MissingFieldException
error. The exception itself is irrelevant, I just want to know where the error window showing its details comes from. I don't know much about Swing or AWT, so is this done by Compose or is it a default behaviour of its underlying libraries? (screenshot cropped because I don't want to share all of it.)
a
It’s done by Compose. I’m not at the computer right now, so I can’t look up the exact API, but you can register an unhandled-exception handler.
It’s
LocalWindowExceptionHandlerFactory
The default one is
DefaultWindowExceptionHandlerFactory
m
Got it, thanks.