Bridge SessionError to public ProviderError

This commit is contained in:
Davide De Rosa 2018-10-21 13:42:21 +02:00
parent 6200a0bc1c
commit 4bf7f1a1fc
2 changed files with 13 additions and 1 deletions

View File

@ -99,10 +99,22 @@ extension TunnelKitProvider {
/// Socket failed to reach active state. /// Socket failed to reach active state.
case socketActivity case socketActivity
/// Credentials authentication failed.
case authenticationFailed
/// TLS handshake failed.
case tlsFailed
/// Tunnel timed out.
case timeout
/// An error occurred at the link level. /// An error occurred at the link level.
case linkError case linkError
/// The current network changed (e.g. switched from WiFi to data connection). /// The current network changed (e.g. switched from WiFi to data connection).
case networkChanged case networkChanged
/// The server replied in an unexpected way.
case unexpectedReply
} }
} }

View File

@ -38,7 +38,7 @@
import Foundation import Foundation
/// The possible errors raised/thrown during `SessionProxy` operation. /// The possible errors raised/thrown during `SessionProxy` operation.
public enum SessionError: Error { public enum SessionError: String, Error {
/// The negotiation timed out. /// The negotiation timed out.
case negotiationTimeout case negotiationTimeout