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.
|
/// 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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue