@@ -8,33 +8,33 @@ import Foundation
88public struct StreamChatError : Error {
99
1010 /// The specific error code.
11- let errorCode : StreamChatErrorCode
11+ public let errorCode : StreamChatErrorCode
1212
1313 /// The additional error message description.
14- let description : String ?
14+ public let description : String ?
1515
1616 /// The additional information dictionary.
17- let additionalInfo : [ String : Any ] ?
17+ public let additionalInfo : [ String : Any ] ?
1818
19- static let unknown = StreamChatError (
19+ public static let unknown = StreamChatError (
2020 errorCode: StreamChatErrorCode . unknown,
2121 description: nil ,
2222 additionalInfo: nil
2323 )
2424
25- static let missingData = StreamChatError (
25+ public static let missingData = StreamChatError (
2626 errorCode: StreamChatErrorCode . missingData,
2727 description: nil ,
2828 additionalInfo: nil
2929 )
3030
31- static let wrongConfig = StreamChatError (
31+ public static let wrongConfig = StreamChatError (
3232 errorCode: StreamChatErrorCode . wrongConfig,
3333 description: nil ,
3434 additionalInfo: nil
3535 )
3636
37- static let noSuggestionsAvailable = StreamChatError (
37+ public static let noSuggestionsAvailable = StreamChatError (
3838 errorCode: StreamChatErrorCode . noSuggestions,
3939 description: nil ,
4040 additionalInfo: nil
@@ -50,7 +50,7 @@ extension StreamChatError: Equatable {
5050
5151extension StreamChatError {
5252
53- func asFailedPromise< T> ( ) -> Future < T , Error > {
53+ public func asFailedPromise< T> ( ) -> Future < T , Error > {
5454 Future { promise in
5555 promise ( . failure( self ) )
5656 }
0 commit comments