: 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) { }
}
}
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));
}
: 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) { }
}
}