AzureCommunicationUI/sdk/AzureCommunicationUIChat/Sources/Redux/Action/ErrorAction.swift (11 lines of code) (raw):
//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
//
import Foundation
enum ErrorAction: Equatable {
case fatalErrorUpdated(internalError: ChatCompositeInternalError, error: Error?)
static func == (lhs: ErrorAction, rhs: ErrorAction) -> Bool {
switch (lhs, rhs) {
case let (.fatalErrorUpdated(internalError: lErr, error: _),
.fatalErrorUpdated(internalError: rErr, error: _)):
return lErr == rErr
}
}
}