Table of Contents

Class ServerAddressChangedException

Namespace
VpnHood.Core.Client.Abstractions.Exceptions
Assembly
VpnHood.Core.Client.Abstractions.dll

The exception that is thrown when a session ends because the server's host name no longer gives the address the session was made to, as when a server behind a dynamic name moved.

public class ServerAddressChangedException : Exception, ISerializable
Inheritance
ServerAddressChangedException
Implements
Inherited Members

Remarks

A VPN service that can connect by itself connects again at once, taking NewAddresses rather than asking the name; another connection asks the name anew.

Constructors

ServerAddressChangedException(string, HostNameAddresses?, Exception?)

The exception that is thrown when a session ends because the server's host name no longer gives the address the session was made to, as when a server behind a dynamic name moved.

public ServerAddressChangedException(string message, HostNameAddresses? newAddresses = null, Exception? innerException = null)

Parameters

message string

The message.

newAddresses HostNameAddresses

The name's new addresses, or null.

innerException Exception

The exception that caused this one, or null.

Remarks

A VPN service that can connect by itself connects again at once, taking NewAddresses rather than asking the name; another connection asks the name anew.

Properties

NewAddresses

Gets the name's new addresses, for the next connection to take; null where the error came from another process.

public HostNameAddresses? NewAddresses { get; }

Property Value

HostNameAddresses