-
-
Notifications
You must be signed in to change notification settings - Fork 340
/
Copy pathSentrySpanStatus.h
129 lines (106 loc) · 4.03 KB
/
SentrySpanStatus.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
#import <Foundation/Foundation.h>
/**
* Describes the status of the Span/Transaction.
*/
typedef NS_ENUM(NSUInteger, SentrySpanStatus) {
/**
* An undefined status.
*/
kSentrySpanStatusUndefined,
/**
* Not an error, returned on success.
*/
kSentrySpanStatusOk,
/**
* The deadline expired before the operation could succeed.
*/
kSentrySpanStatusDeadlineExceeded,
/**
* The requester doesn't have valid authentication credentials for the operation.
*/
kSentrySpanStatusUnauthenticated,
/**
* The caller doesn't have permission to execute the specified operation.
*/
kSentrySpanStatusPermissionDenied,
/**
* Content was not found or request was denied for an entire class of users.
*/
kSentrySpanStatusNotFound,
/**
* The resource has been exhausted e.g. per-user quota exhausted, file system out of space.
*/
kSentrySpanStatusResourceExhausted,
/**
* The client specified an invalid argument.
*/
kSentrySpanStatusInvalidArgument,
/**
* 501 Not Implemented.
*/
kSentrySpanStatusUnimplemented,
/**
* The operation is not implemented or is not supported/enabled for this operation.
*/
kSentrySpanStatusUnavailable,
/**
* Some invariants expected by the underlying system have been broken. This code is reserved for
* serious errors.
*/
kSentrySpanStatusInternalError,
/**
* An unknown error raised by APIs that don't return enough error information.
*/
kSentrySpanStatusUnknownError,
/**
* The operation was cancelled, typically by the caller.
*/
kSentrySpanStatusCancelled,
/**
* The entity attempted to be created already exists.
*/
kSentrySpanStatusAlreadyExists,
/**
* The client shouldn't retry until the system state has been explicitly handled.
*/
kSentrySpanStatusFailedPrecondition,
/**
* The operation was aborted.
*/
kSentrySpanStatusAborted,
/**
* The operation was attempted past the valid range e.g. seeking past the end of a file.
*/
kSentrySpanStatusOutOfRange,
/**
* Unrecoverable data loss or corruption.
*/
kSentrySpanStatusDataLoss,
};
static DEPRECATED_MSG_ATTRIBUTE(
"Use nameForSentrySpanStatus() instead.") NSString *_Nonnull const SentrySpanStatusNames[]
= { @"undefined", @"ok", @"deadline_exceeded", @"unauthenticated", @"permission_denied",
@"not_found", @"resource_exhausted", @"invalid_argument", @"unimplemented",
@"unavailable", @"internal_error", @"unknown_error", @"cancelled", @"already_exists",
@"failed_precondition", @"aborted", @"out_of_range", @"data_loss" };
NS_ASSUME_NONNULL_BEGIN
FOUNDATION_EXPORT NSString *const kSentrySpanStatusNameUndefined;
FOUNDATION_EXPORT NSString *const kSentrySpanStatusNameOk;
FOUNDATION_EXPORT NSString *const kSentrySpanStatusNameDeadlineExceeded;
FOUNDATION_EXPORT NSString *const kSentrySpanStatusNameUnauthenticated;
FOUNDATION_EXPORT NSString *const kSentrySpanStatusNamePermissionDenied;
FOUNDATION_EXPORT NSString *const kSentrySpanStatusNameNotFound;
FOUNDATION_EXPORT NSString *const kSentrySpanStatusNameResourceExhausted;
FOUNDATION_EXPORT NSString *const kSentrySpanStatusNameInvalidArgument;
FOUNDATION_EXPORT NSString *const kSentrySpanStatusNameUnimplemented;
FOUNDATION_EXPORT NSString *const kSentrySpanStatusNameUnavailable;
FOUNDATION_EXPORT NSString *const kSentrySpanStatusNameInternalError;
FOUNDATION_EXPORT NSString *const kSentrySpanStatusNameUnknownError;
FOUNDATION_EXPORT NSString *const kSentrySpanStatusNameCancelled;
FOUNDATION_EXPORT NSString *const kSentrySpanStatusNameAlreadyExists;
FOUNDATION_EXPORT NSString *const kSentrySpanStatusNameFailedPrecondition;
FOUNDATION_EXPORT NSString *const kSentrySpanStatusNameAborted;
FOUNDATION_EXPORT NSString *const kSentrySpanStatusNameOutOfRange;
FOUNDATION_EXPORT NSString *const kSentrySpanStatusNameDataLoss;
NSString *nameForSentrySpanStatus(SentrySpanStatus status);
NS_ASSUME_NONNULL_END