Class ProxyClientException
- Namespace
- VpnHood.Net.Proxies
- Assembly
- VpnHood.Net.Proxies.dll
The exception that is thrown when a proxy refuses a request or answers in a way the client cannot use.
public class ProxyClientException : SocketException, ISerializable
- Inheritance
-
ProxyClientException
- Implements
- Inherited Members
Remarks
SocketErrorCode gives the reason in the terms of a direct connection: for example AccessDenied when the proxy refuses the request or its credentials, ConnectionRefused or HostUnreachable when the proxy could not reach the destination, and ProtocolNotSupported when the server does not speak the proxy protocol the client expects.
Constructors
ProxyClientException(SocketError, string?)
The exception that is thrown when a proxy refuses a request or answers in a way the client cannot use.
public ProxyClientException(SocketError socketError, string? message = null)
Parameters
socketErrorSocketErrorThe reason, as a socket error code.
messagestringA message that describes the error, or null.
Remarks
SocketErrorCode gives the reason in the terms of a direct connection: for example AccessDenied when the proxy refuses the request or its credentials, ConnectionRefused or HostUnreachable when the proxy could not reach the destination, and ProtocolNotSupported when the server does not speak the proxy protocol the client expects.