in AzureCommunicationUI/sdk/AzureCommunicationUICalling/Sources/Utilities/CallCompositeInternalError.swift [27:57]
func toCallCompositeErrorCode() -> String? {
switch self {
case .deviceManagerFailed:
return CallCompositeErrorCode.cameraFailure
case .callTokenFailed:
return CallCompositeErrorCode.tokenExpired
case .callJoinFailed, .callJoinConnectionFailed:
return CallCompositeErrorCode.callJoin
case .callEndFailed:
return CallCompositeErrorCode.callEnd
case .cameraOnFailed:
return CallCompositeErrorCode.cameraFailure
case .callJoinFailedByMicPermission:
return CallCompositeErrorCode.microphonePermissionNotGranted
case .networkConnectionNotAvailable:
return CallCompositeErrorCode.networkConnectionNotAvailable
case .captionsNotActive:
return CallCompositeErrorCode.captionsNotActive
case .captionsStartFailedCallNotConnected:
return CallCompositeErrorCode.captionsStartFailedCallNotConnected
case .captionsStartFailedSpokenLanguageNotSupported:
return CallCompositeErrorCode.captionsStartFailedSpokenLanguageNotSupported
case .callHoldFailed,
.callResumeFailed,
.callEvicted,
.callDenied,
.micNotAvailable,
.cameraSwitchFailed:
return nil
}
}