fix: establish native exception mechanisms by supervacuus ยท Pull Request #5052 ยท getsentry/sentry-java

๐Ÿ“œ Description

As discussed yesterday during the sync, let's establish native exception mechanisms right away.

๐Ÿ’ก Motivation and Context

allows us to cleanly differentiate which handler an event originated from. This is particularly helpful since we now also merge events from two different mechanisms: #5037

๐Ÿ’š How did you test it?

adapted the affected unit tests.

๐Ÿ“ Checklist

  • I added GH Issue ID & Linear ID
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

๐Ÿ”ฎ Next steps