Make SentryException value and type nullable #4012
Labels
Breaking-change
should go in a major release (breaks apps, changes default configs in a major way)
Platform: Cocoa
Milestone
Description
Only one of
SentryException.value
orSentryException.type
is required to be nonnull; see Relay. Thevalue
can already benil
when converting an NSException to a SentryException in the client as NSException.reason is nullable.sentry-cocoa/Sources/Sentry/SentryClient.m
Lines 208 to 210 in cf97209
Therefore, we should make both
value
andtype
nullable readonly and add constructors to ensure either one of the two is set. Consider converting this class to Swift when doing these changes.The text was updated successfully, but these errors were encountered: