-
-
Notifications
You must be signed in to change notification settings - Fork 340
/
Copy pathSentryMechanismMeta.h
42 lines (33 loc) · 1.31 KB
/
SentryMechanismMeta.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#import <Foundation/Foundation.h>
#if __has_include(<Sentry/Sentry.h>)
# import <Sentry/SentryDefines.h>
# import <Sentry/SentrySerializable.h>
#else
# import <SentryWithoutUIKit/SentryDefines.h>
# import <SentryWithoutUIKit/SentrySerializable.h>
#endif
@class SentryNSError;
NS_ASSUME_NONNULL_BEGIN
/**
* The mechanism metadata usually carries error codes reported by the runtime or operating system,
* along with a platform-dependent interpretation of these codes.
* @see https://develop.sentry.dev/sdk/event-payloads/exception/#meta-information.
*/
NS_SWIFT_NAME(MechanismMeta)
@interface SentryMechanismMeta : NSObject <SentrySerializable>
- (instancetype)init;
/**
* Information on the POSIX signal. On Apple systems, signals also carry a code in addition to the
* signal number describing the signal in more detail. On Linux, this code does not exist.
*/
@property (nullable, nonatomic, strong) NSDictionary<NSString *, id> *signal;
/**
* A Mach Exception on Apple systems comprising a code triple and optional descriptions.
*/
@property (nullable, nonatomic, strong) NSDictionary<NSString *, id> *machException;
/**
* Sentry uses the @c NSErrors domain and code for grouping. Only domain and code are serialized.
*/
@property (nullable, nonatomic, strong) SentryNSError *error;
@end
NS_ASSUME_NONNULL_END