@@ -5,7 +5,7 @@ import firebase
5
5
@_spi ( FirebaseInternal)
6
6
import FirebaseCore
7
7
8
- public struct FirebaseFunctionsErrorCode : Error {
8
+ public struct FunctionsErrorCode : Error {
9
9
public let rawValue : Int
10
10
public let localizedDescription : String
11
11
@@ -19,7 +19,7 @@ public struct FirebaseFunctionsErrorCode: Error {
19
19
}
20
20
}
21
21
22
- extension FirebaseFunctionsErrorCode : RawRepresentable {
22
+ extension FunctionsErrorCode : RawRepresentable {
23
23
public typealias RawValue = Int
24
24
25
25
public init ( rawValue: Int ) {
@@ -28,7 +28,7 @@ extension FirebaseFunctionsErrorCode: RawRepresentable {
28
28
}
29
29
}
30
30
31
- extension FirebaseFunctionsErrorCode {
31
+ extension FunctionsErrorCode {
32
32
init ( _ error: firebase . functions . Error , errorMessage: String ? ) {
33
33
self . init ( ( code: error. rawValue, message: errorMessage ?? " \( error. rawValue) " ) )
34
34
}
@@ -43,7 +43,7 @@ extension FirebaseFunctionsErrorCode {
43
43
}
44
44
}
45
45
46
- extension FirebaseFunctionsErrorCode {
46
+ extension FunctionsErrorCode {
47
47
public static var none : Self { . init( firebase. functions. kErrorNone) }
48
48
public static var cancelled : Self { . init( firebase. functions. kErrorCancelled) }
49
49
public static var unknown : Self { . init( firebase. functions. kErrorUnknown) }
@@ -63,11 +63,11 @@ extension FirebaseFunctionsErrorCode {
63
63
public static var dataLoss : Self { . init( firebase. functions. kErrorDataLoss) }
64
64
}
65
65
66
- extension FirebaseFunctionsErrorCode : Equatable { }
66
+ extension FunctionsErrorCode : Equatable { }
67
67
68
- extension FirebaseFunctionsErrorCode {
68
+ extension FunctionsErrorCode {
69
69
// The Obj C API provides this type as well, so provide it here for consistency.
70
- public typealias Code = FirebaseFunctionsErrorCode
70
+ public typealias Code = FunctionsErrorCode
71
71
72
72
// This allows us to re-expose self as a code similarly
73
73
// to what the Firebase SDK does when it creates the
0 commit comments