forked from getsentry/sentry-cocoa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSentryException.h
54 lines (41 loc) · 1.12 KB
/
SentryException.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
43
44
45
46
47
48
49
50
51
52
53
54
#import <Foundation/Foundation.h>
#import "SentryDefines.h"
#import "SentrySerializable.h"
NS_ASSUME_NONNULL_BEGIN
@class SentryStacktrace, SentryMechanism;
NS_SWIFT_NAME(Exception)
@interface SentryException : NSObject <SentrySerializable>
SENTRY_NO_INIT
/**
* The name of the exception
*/
@property (nonatomic, copy) NSString *value;
/**
* Type of the exception
*/
@property (nonatomic, copy) NSString *type;
/**
* Additional information about the exception
*/
@property (nonatomic, strong) SentryMechanism *_Nullable mechanism;
/**
* Can be set to define the module
*/
@property (nonatomic, copy) NSString *_Nullable module;
/**
* An optional value which refers to a thread in `SentryEvent.threads`.
*/
@property (nonatomic, copy) NSNumber *_Nullable threadId;
/**
* Stacktrace containing frames of this exception.
*/
@property (nonatomic, strong) SentryStacktrace *_Nullable stacktrace;
/**
* Initialize an SentryException with value and type
* @param value String
* @param type String
* @return SentryException
*/
- (instancetype)initWithValue:(NSString *)value type:(NSString *)type;
@end
NS_ASSUME_NONNULL_END