-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
df3d0cc
commit 0ed3cb2
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...S/SOLARdVPNCommunityCoreiOS/Common/Extensions/Wallet/SubscriptionsProviderError+Ext.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// SubscriptionsProviderError+Ext.swift | ||
// SOLARdVPNCommunityCoreiOS | ||
// | ||
// Created by Viktoriia Kostyleva on 17.10.2022. | ||
// | ||
|
||
import Foundation | ||
import SentinelWallet | ||
|
||
extension SubscriptionsProviderError: LocalizedError { | ||
public var errorDescription: String? { | ||
switch self { | ||
case .broadcastFailed: | ||
return "broadcast_failed" | ||
case .sessionStartFailed: | ||
return "session_start_failed" | ||
case .sessionsStopFailed: | ||
return "sessions_stop_failed" | ||
} | ||
} | ||
} |