• Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • VpnSDK
      • AccountMetadataException
      • APIException
      • ApiTimeoutException
      • AuthenticationException
      • BaseSDKException
      • ConnectionAlreadyEstablishedException
      • ConnectionConfigurationBuilderBase
      • ConnectionException
      • ConnectionTerminatedException
      • CoreException
      • DataTransferEventArgs
      • DnsConfigurationException
      • DoubleHopException
      • DoubleHopNotAvailableException
      • EmptyAvailableVpnProtocolsException
      • EndpointsUnreachableException
      • FetchLocationsException
      • HTTPException
      • InvalidAccountException
      • InvalidConfigurationException
      • InvalidDoubleHopConfigurationException
      • InvalidServerException
      • NotAuthorizedException
      • NotElevatedException
      • NullLocationException
      • OAuthException
      • OpenVpnConnectionConfigurationBuilder
      • RasConnectionConfigurationBuilder
      • ReconnectOnPowerEventException
      • SDKBuilder<T>
      • SDKChangeEventHandler<T>
      • SDKEventHandler
      • SDKEventHandler<T>
      • SDKOperationEventHandler
      • SDKOperationEventHandler<T>
      • ServerListException
      • TapAdapterException
      • UnknownErrorException
      • UnsupportedProtocolException
      • VPNAuthenticationException
      • VpnException
      • VpnHostServiceException
      • VpnHostServiceFileNotFoundException
      • WFPException
      • WireGuardAPIException
      • WireGuardConnectionConfigurationBuilder
    • VpnSDK.Common.Dns
      • DnsResolutionResult
      • IDnsRequestResolver
    • VpnSDK.Common.Enums
      • SplitTunnelMode
    • VpnSDK.Common.Settings
      • SplitTunnelApp
      • SplitTunnelDomain
    • VpnSDK.DTO
      • ApiHttpError
      • ApiProxyError
      • ConnectionError
      • ISDKError
      • NetworkGeolocation
      • OpenVpnConfiguration
      • RasConfiguration
      • WireguardConfiguration
    • VpnSDK.Enums
      • AccountStatus
      • AuthenticationStatus
      • ConnectionStatus
      • DnsFilteringMode
      • Driver
      • DriverInstallResult
      • DriverUninstallResult
      • ErrorType
      • LoadLevel
      • NetworkConnectionType
      • NetworkProtocolType
      • OpenVpnCipherType
      • OpenVpnLogLevel
      • OperationStatus
      • RefreshLocationListStatus
    • VpnSDK.Extensions
      • ExceptionExtensions
      • LocationExtensions
      • RegionLoadChecker
    • VpnSDK.Helpers
      • BatchPingUtility
      • VersionHelper
      • VpnProtocolDiagnostics
    • VpnSDK.Interfaces
      • IBestAvailable
      • IConnectionConfiguration
      • IConnectionInfo
      • IDoubleHopConfiguration
      • ILocation
      • IOpenVpnConnectionConfiguration
      • IRasConnectionConfiguration
      • IRegion
      • ISDK
      • IUser
      • IWireGuardConnectionConfiguration

    Class ConnectionError

    Class ConnectionError. Describes any connection error.

    Inheritance
    System.Object
    ConnectionError
    Implements
    ISDKError
    Namespace: VpnSDK.DTO
    Assembly: cs.temp.dll.dll
    Syntax
    public class ConnectionError : ISDKError

    Constructors

    ConnectionError(String, String, String, String, IConnectionConfiguration, Exception)

    Initializes a new instance of the ConnectionError class.

    Declaration
    public ConnectionError(string hostname, string ip, string cityCode, string countryCode, IConnectionConfiguration connectionConfiguration, Exception systemException)
    Parameters
    Type Name Description
    System.String hostname

    The VPN server hostname.

    System.String ip

    The VPN server IP address.

    System.String cityCode

    The VPN server city code.

    System.String countryCode

    The VPN server country code.

    IConnectionConfiguration connectionConfiguration

    The VPN protocol configuration.

    Exception systemException

    The exception that occurred.

    Properties

    CityCode

    Gets a city code of a server.

    Declaration
    public string CityCode { get; }
    Property Value
    Type Description
    System.String

    ConnectionConfiguration

    Gets a VPN protocol configuration.

    Declaration
    public IConnectionConfiguration ConnectionConfiguration { get; }
    Property Value
    Type Description
    IConnectionConfiguration

    CountryCode

    Gets a country code of a server.

    Declaration
    public string CountryCode { get; }
    Property Value
    Type Description
    System.String

    Hostname

    Gets a hostname of a server.

    Declaration
    public string Hostname { get; }
    Property Value
    Type Description
    System.String

    Ip

    Gets an IP address of a server.

    Declaration
    public string Ip { get; }
    Property Value
    Type Description
    System.String

    SystemException

    Gets the system , if any. Sometimes the API requests fail because of the system, not because the API is responding with a bad status. For example, this happens if a user has bad Internet connection and API request fails with .

    Declaration
    public Exception SystemException { get; }
    Property Value
    Type Description
    Exception

    Implements

    ISDKError
    In This Article
    Back to top VpnSDK v2 Documentation - © 2023 WLVPN