Bridge SessionError to public ProviderError
This commit is contained in:
parent
6200a0bc1c
commit
4bf7f1a1fc
|
@ -99,10 +99,22 @@ extension TunnelKitProvider {
|
|||
/// Socket failed to reach active state.
|
||||
case socketActivity
|
||||
|
||||
/// Credentials authentication failed.
|
||||
case authenticationFailed
|
||||
|
||||
/// TLS handshake failed.
|
||||
case tlsFailed
|
||||
|
||||
/// Tunnel timed out.
|
||||
case timeout
|
||||
|
||||
/// An error occurred at the link level.
|
||||
case linkError
|
||||
|
||||
/// The current network changed (e.g. switched from WiFi to data connection).
|
||||
case networkChanged
|
||||
|
||||
/// The server replied in an unexpected way.
|
||||
case unexpectedReply
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
import Foundation
|
||||
|
||||
/// The possible errors raised/thrown during `SessionProxy` operation.
|
||||
public enum SessionError: Error {
|
||||
public enum SessionError: String, Error {
|
||||
|
||||
/// The negotiation timed out.
|
||||
case negotiationTimeout
|
||||
|
|
Loading…
Reference in New Issue