public SocksException(SocksErrorCode errorCode) : base(GetMessageForCode((int)errorCode)) { SocksErrorCode = errorCode; }
private bool IsTransient(SocksErrorCode code) { return(code == SocksErrorCode.GeneralServerFailure || code == SocksErrorCode.TTLExpired); }