-
-
Notifications
You must be signed in to change notification settings - Fork 372
fix: No reason for NSException #6653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
+135
−7
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Send no exception value when the NSException has no reason. Fixes GH-3706
philprime
approved these changes
Nov 4, 2025
Member
philprime
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Contributor
Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 9264ee8 | 1233.15 ms | 1250.02 ms | 16.87 ms |
| d72784d | 1214.31 ms | 1241.35 ms | 27.04 ms |
| 8da82b4 | 1220.08 ms | 1248.24 ms | 28.16 ms |
| 43597ba | 1214.88 ms | 1243.52 ms | 28.65 ms |
| 3cdbc22 | 1231.63 ms | 1251.06 ms | 19.43 ms |
| bbe6658 | 1221.00 ms | 1248.51 ms | 27.51 ms |
| 00d9740 | 1223.53 ms | 1249.75 ms | 26.22 ms |
| 3067c23 | 1230.48 ms | 1257.90 ms | 27.42 ms |
| cc7f629 | 1226.00 ms | 1245.51 ms | 19.51 ms |
| 748df9d | 1231.63 ms | 1259.47 ms | 27.84 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 9264ee8 | 23.75 KiB | 913.09 KiB | 889.34 KiB |
| d72784d | 23.75 KiB | 988.01 KiB | 964.27 KiB |
| 8da82b4 | 23.75 KiB | 913.63 KiB | 889.88 KiB |
| 43597ba | 23.75 KiB | 880.32 KiB | 856.58 KiB |
| 3cdbc22 | 23.75 KiB | 928.14 KiB | 904.40 KiB |
| bbe6658 | 23.75 KiB | 908.02 KiB | 884.27 KiB |
| 00d9740 | 23.75 KiB | 938.32 KiB | 914.57 KiB |
| 3067c23 | 23.75 KiB | 928.15 KiB | 904.40 KiB |
| cc7f629 | 23.75 KiB | 878.48 KiB | 854.73 KiB |
| 748df9d | 23.75 KiB | 902.48 KiB | 878.74 KiB |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📜 Description
Send no exception value when the NSException has no reason.
Then we can easily change
(No error message)in the SentryUI to anything we want for NSExceptions, if required. I think the(No error message)is already better.I plan on removing the
Application threw exception NSException via NSException raise:string in an upcoming PR cause it's a bit confusing to add this extra string without much value. Instead, we should only have NSException type and value.sentry-cocoa/Sources/SentryCrash/Recording/SentryCrashDoctor.m
Lines 437 to 445 in a4e1541
💡 Motivation and Context
Fixes GH-3706
💚 How did you test it?
Unit tests and macOS sample app
📝 Checklist
You have to check all boxes before merging:
sendDefaultPIIis enabled.