Why not reporting Throwable's cause (if present) instead of the unhandled Throwable itself?
For example, when unhandled exceptions are thrown from coroutines, we get "CoroutinesInternalError: Fatal exception in coroutines machinery..." reports instead of the actual cause of the exception (for example an IllegalStateException generated by a check(...) call); wouldn't it be more useful if the actual cause is reported?
Why not reporting
Throwable
'scause
(if present) instead of the unhandledThrowable
itself? For example, when unhandled exceptions are thrown from coroutines, we get "CoroutinesInternalError: Fatal exception in coroutines machinery..." reports instead of the actualcause
of the exception (for example anIllegalStateException
generated by acheck(...)
call); wouldn't it be more useful if the actualcause
is reported?