Skip to content

Commit f16163f

Browse files
fix(apple): Custom error desc min version (#5583)
Specify which min version is needed for customized error descriptions.
1 parent 3540efd commit f16163f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/platform-includes/capture-error/apple.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ By default, macOS applications do not crash whenever an uncaught exception occur
2929
3030
## Customizing Error Descriptions
3131
32+
This feature is available on [sentry-cocoa 7.25.0](https://github.com/getsentry/sentry-cocoa/blob/master/CHANGELOG.md#7250) and above.
33+
3234
By default, Sentry will display the error code as the error description. For custom error types, you may want to provide a custom description that makes it easier to identify the error in the **Issues** page. You can provide a custom description for `NSError` values by adding a description to the `userInfo` dictionary with the key `NSDebugDescriptionErrorKey`.
3335
3436
This can be particularly useful for Swift enum error types that conform to `Error`, where the error code can be hard to match with an enum case. To customize the description for Swift `Error` types, you should conform to the `CustomNSError` protocol and return a user info dictionary:

0 commit comments

Comments
 (0)