address feedback
authorGeoff Kizer <geoffrek>
Wed, 3 Jul 2019 00:25:06 +0000 (17:25 -0700)
committerGeoff Kizer <geoffrek>
Wed, 3 Jul 2019 01:39:25 +0000 (18:39 -0700)
Commit migrated from https://github.com/dotnet/corefx/commit/490593ffa52cd818a8c0ebeb5298b48b3844237b

src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http2ConnectionException.cs
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http2ProtocolException.cs
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http2StreamException.cs

index 1769d32..afd3b18 100644 (file)
@@ -13,5 +13,7 @@ namespace System.Net.Http
             : base(SR.Format(SR.net_http_http2_connection_error, GetName(protocolError), ((int)protocolError).ToString("x")), protocolError)
         {
         }
+
+        private Http2ConnectionException(SerializationInfo info, StreamingContext context) : base(info, context) { }
     }
 }
index 2451b51..32a4cc4 100644 (file)
@@ -15,7 +15,7 @@ namespace System.Net.Http
             ProtocolError = protocolError;
         }
 
-        private Http2ProtocolException(SerializationInfo info, StreamingContext context) : base(info, context)
+        protected Http2ProtocolException(SerializationInfo info, StreamingContext context) : base(info, context)
         {
             ProtocolError = (Http2ProtocolErrorCode)info.GetInt32(nameof(ProtocolError));
         }
index f0c2602..2c14f41 100644 (file)
@@ -13,5 +13,7 @@ namespace System.Net.Http
             : base(SR.Format(SR.net_http_http2_stream_error, GetName(protocolError), ((int)protocolError).ToString("x")), protocolError)
         {
         }
+
+        private Http2StreamException(SerializationInfo info, StreamingContext context) : base(info, context) { }
     }
 }