-
Notifications
You must be signed in to change notification settings - Fork 227
V5: Use error types from StreamCore #3859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: v5-concurrency-and-timers
Are you sure you want to change the base?
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Generated by 🚫 Danger |
SDK Size
|
Public Interface- public struct ErrorPayload: LocalizedError, Codable, CustomDebugStringConvertible, Equatable
-
- case code
- case message
- case statusCode = "StatusCode"
-
-
- public let code: Int
- public let message: String
- public let statusCode: Int
- public var errorDescription: String?
- public var debugDescription: String
- public final class InvalidToken: ClientError, @unchecked Sendable
- public class ClientError: Error, CustomStringConvertible, @unchecked Sendable
-
- public let location: Location?
- public let message: String?
- public let underlyingError: Error?
- public var errorDescription: String?
- public var errorPayload: ErrorPayload?
- public var localizedDescription: String
- public private lazy var description
-
-
- public init(with error: Error? = nil,_ file: StaticString = #file,_ line: UInt = #line)
- public init(_ message: String,_ file: StaticString = #file,_ line: UInt = #line)
-
-
- public struct Location: Equatable
-
- public let file: String
- public let line: Int
- public final class EventDecoding: ClientError, @unchecked Sendable
- public final class WebSocket: ClientError, @unchecked Sendable
- public final class Unknown: ClientError, @unchecked Sendable
- public struct ErrorPayloadDetail: LocalizedError, Codable, Equatable
-
- case code
- case messages
-
-
- public let code: Int
- public let messages: [String]
- public final class Unexpected: ClientError, @unchecked Sendable
- extension ClientError: Equatable
+ public extension ClientError
- public static func ==(lhs: ClientError,rhs: ClientError)-> Bool
+ override public var localizedDescription: String
+ override public var localizedDescription: String
+ override public var localizedDescription: String |
StreamChat XCSize
Show 221 more objects
|
StreamChatUI XCSize
Show 292 more objects
|
|
SDK Performance
|
| import XCTest | ||
|
|
||
| final class ClientError_Tests: XCTestCase { | ||
| func test_isInvalidTokenError_whenUnderlayingErrorIsInvalidToken_returnsTrue() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume you moved this test to core, right?



🔗 Issue Links
Fixes IOS-1206
🎯 Goal
Describe why we are making this change.
📝 Summary
Provide bullet points with the most important changes in the codebase.
🛠 Implementation
Provide a detailed description of the implementation and explain your decisions if you find them relevant.
🎨 Showcase
Add relevant screenshots and/or videos/gifs to easily see what this PR changes, if applicable.
🧪 Manual Testing Notes
Explain how this change can be tested manually, if applicable.
☑️ Contributor Checklist
docs-contentrepo