@@ -20,71 +20,72 @@ NS_ASSUME_NONNULL_BEGIN
20
20
FOUNDATION_EXPORT NSString *const FIRFunctionsErrorDomain NS_SWIFT_NAME (FunctionsErrorDomain);
21
21
22
22
// The key for finding error details in the NSError userInfo.
23
- FOUNDATION_EXPORT NSString *const FIRFunctionsErrorDetailsKey NS_SWIFT_NAME (FunctionsErrorDetailsKey);
23
+ FOUNDATION_EXPORT NSString *const FIRFunctionsErrorDetailsKey
24
+ NS_SWIFT_NAME (FunctionsErrorDetailsKey);
24
25
25
26
/* *
26
27
* The set of error status codes that can be returned from a Callable HTTPS tigger. These are the
27
28
* canonical error codes for Google APIs, as documented here:
28
29
* https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto#L26
29
30
*/
30
31
typedef NS_ENUM (NSInteger , FIRFunctionsErrorCode) {
31
- /* * The operation completed successfully. */
32
- FIRFunctionsErrorCodeOK = 0 ,
33
- /* * The operation was cancelled (typically by the caller). */
34
- FIRFunctionsErrorCodeCancelled = 1 ,
35
- /* * Unknown error or an error from a different error domain. */
36
- FIRFunctionsErrorCodeUnknown = 2 ,
37
- /* *
38
- * Client specified an invalid argument. Note that this differs from `FailedPrecondition`.
39
- * `InvalidArgument` indicates arguments that are problematic regardless of the state of the
40
- * system (e.g., an invalid field name).
41
- */
42
- FIRFunctionsErrorCodeInvalidArgument = 3 ,
43
- /* *
44
- * Deadline expired before operation could complete. For operations that change the state of the
45
- * system, this error may be returned even if the operation has completed successfully. For
46
- * example, a successful response from a server could have been delayed long enough for the
47
- * deadline to expire.
48
- */
49
- FIRFunctionsErrorCodeDeadlineExceeded = 4 ,
50
- /* * Some requested document was not found. */
51
- FIRFunctionsErrorCodeNotFound = 5 ,
52
- /* * Some document that we attempted to create already exists. */
53
- FIRFunctionsErrorCodeAlreadyExists = 6 ,
54
- /* * The caller does not have permission to execute the specified operation. */
55
- FIRFunctionsErrorCodePermissionDenied = 7 ,
56
- /* *
57
- * Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system
58
- * is out of space.
59
- */
60
- FIRFunctionsErrorCodeResourceExhausted = 8 ,
61
- /* *
62
- * Operation was rejected because the system is not in a state required for the operation's
63
- * execution.
64
- */
65
- FIRFunctionsErrorCodeFailedPrecondition = 9 ,
66
- /* *
67
- * The operation was aborted, typically due to a concurrency issue like transaction aborts, etc.
68
- */
69
- FIRFunctionsErrorCodeAborted = 10 ,
70
- /* * Operation was attempted past the valid range. */
71
- FIRFunctionsErrorCodeOutOfRange = 11 ,
72
- /* * Operation is not implemented or not supported/enabled. */
73
- FIRFunctionsErrorCodeUnimplemented = 12 ,
74
- /* *
75
- * Internal errors. Means some invariant expected by underlying system has been broken. If you
76
- * see one of these errors, something is very broken.
77
- */
78
- FIRFunctionsErrorCodeInternal = 13 ,
79
- /* *
80
- * The service is currently unavailable. This is a most likely a transient condition and may be
81
- * corrected by retrying with a backoff.
82
- */
83
- FIRFunctionsErrorCodeUnavailable = 14 ,
84
- /* * Unrecoverable data loss or corruption. */
85
- FIRFunctionsErrorCodeDataLoss = 15 ,
86
- /* * The request does not have valid authentication credentials for the operation. */
87
- FIRFunctionsErrorCodeUnauthenticated = 16 ,
32
+ /* * The operation completed successfully. */
33
+ FIRFunctionsErrorCodeOK = 0 ,
34
+ /* * The operation was cancelled (typically by the caller). */
35
+ FIRFunctionsErrorCodeCancelled = 1 ,
36
+ /* * Unknown error or an error from a different error domain. */
37
+ FIRFunctionsErrorCodeUnknown = 2 ,
38
+ /* *
39
+ * Client specified an invalid argument. Note that this differs from `FailedPrecondition`.
40
+ * `InvalidArgument` indicates arguments that are problematic regardless of the state of the
41
+ * system (e.g., an invalid field name).
42
+ */
43
+ FIRFunctionsErrorCodeInvalidArgument = 3 ,
44
+ /* *
45
+ * Deadline expired before operation could complete. For operations that change the state of the
46
+ * system, this error may be returned even if the operation has completed successfully. For
47
+ * example, a successful response from a server could have been delayed long enough for the
48
+ * deadline to expire.
49
+ */
50
+ FIRFunctionsErrorCodeDeadlineExceeded = 4 ,
51
+ /* * Some requested document was not found. */
52
+ FIRFunctionsErrorCodeNotFound = 5 ,
53
+ /* * Some document that we attempted to create already exists. */
54
+ FIRFunctionsErrorCodeAlreadyExists = 6 ,
55
+ /* * The caller does not have permission to execute the specified operation. */
56
+ FIRFunctionsErrorCodePermissionDenied = 7 ,
57
+ /* *
58
+ * Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system
59
+ * is out of space.
60
+ */
61
+ FIRFunctionsErrorCodeResourceExhausted = 8 ,
62
+ /* *
63
+ * Operation was rejected because the system is not in a state required for the operation's
64
+ * execution.
65
+ */
66
+ FIRFunctionsErrorCodeFailedPrecondition = 9 ,
67
+ /* *
68
+ * The operation was aborted, typically due to a concurrency issue like transaction aborts, etc.
69
+ */
70
+ FIRFunctionsErrorCodeAborted = 10 ,
71
+ /* * Operation was attempted past the valid range. */
72
+ FIRFunctionsErrorCodeOutOfRange = 11 ,
73
+ /* * Operation is not implemented or not supported/enabled. */
74
+ FIRFunctionsErrorCodeUnimplemented = 12 ,
75
+ /* *
76
+ * Internal errors. Means some invariant expected by underlying system has been broken. If you
77
+ * see one of these errors, something is very broken.
78
+ */
79
+ FIRFunctionsErrorCodeInternal = 13 ,
80
+ /* *
81
+ * The service is currently unavailable. This is a most likely a transient condition and may be
82
+ * corrected by retrying with a backoff.
83
+ */
84
+ FIRFunctionsErrorCodeUnavailable = 14 ,
85
+ /* * Unrecoverable data loss or corruption. */
86
+ FIRFunctionsErrorCodeDataLoss = 15 ,
87
+ /* * The request does not have valid authentication credentials for the operation. */
88
+ FIRFunctionsErrorCodeUnauthenticated = 16 ,
88
89
};
89
90
90
91
NS_ASSUME_NONNULL_END
0 commit comments