@@ -8,33 +8,33 @@ import Foundation
8
8
public struct StreamChatError : Error {
9
9
10
10
/// The specific error code.
11
- let errorCode : StreamChatErrorCode
11
+ public let errorCode : StreamChatErrorCode
12
12
13
13
/// The additional error message description.
14
- let description : String ?
14
+ public let description : String ?
15
15
16
16
/// The additional information dictionary.
17
- let additionalInfo : [ String : Any ] ?
17
+ public let additionalInfo : [ String : Any ] ?
18
18
19
- static let unknown = StreamChatError (
19
+ public static let unknown = StreamChatError (
20
20
errorCode: StreamChatErrorCode . unknown,
21
21
description: nil ,
22
22
additionalInfo: nil
23
23
)
24
24
25
- static let missingData = StreamChatError (
25
+ public static let missingData = StreamChatError (
26
26
errorCode: StreamChatErrorCode . missingData,
27
27
description: nil ,
28
28
additionalInfo: nil
29
29
)
30
30
31
- static let wrongConfig = StreamChatError (
31
+ public static let wrongConfig = StreamChatError (
32
32
errorCode: StreamChatErrorCode . wrongConfig,
33
33
description: nil ,
34
34
additionalInfo: nil
35
35
)
36
36
37
- static let noSuggestionsAvailable = StreamChatError (
37
+ public static let noSuggestionsAvailable = StreamChatError (
38
38
errorCode: StreamChatErrorCode . noSuggestions,
39
39
description: nil ,
40
40
additionalInfo: nil
@@ -50,7 +50,7 @@ extension StreamChatError: Equatable {
50
50
51
51
extension StreamChatError {
52
52
53
- func asFailedPromise< T> ( ) -> Future < T , Error > {
53
+ public func asFailedPromise< T> ( ) -> Future < T , Error > {
54
54
Future { promise in
55
55
promise ( . failure( self ) )
56
56
}
0 commit comments