This PR adds support of reporting unhandled KMP exceptions. They exist because in Swift there is no concept of unchecked exceptions, so if any Kotlin code throws to Swift, it should have @Throws annotation. If exception is not handled, then it is reported to what is set in unhandledExceptionHook and then application should be terminated.
If this hook is not implemented, we will still catch crash, but it will be less precise or may even miss the relevant information.
This PR will report such exceptions to Logs and RUM if crash reporting is enabled.
Review checklist (to be filled by reviewers)
[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] Make sure you discussed the feature or bugfix with the maintaining team in an Issue
[ ] Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)
What does this PR do?
This PR adds support of reporting unhandled KMP exceptions. They exist because in Swift there is no concept of unchecked exceptions, so if any Kotlin code throws to Swift, it should have
@Throws
annotation. If exception is not handled, then it is reported to what is set inunhandledExceptionHook
and then application should be terminated.If this hook is not implemented, we will still catch crash, but it will be less precise or may even miss the relevant information.
This PR will report such exceptions to Logs and RUM if crash reporting is enabled.
Review checklist (to be filled by reviewers)