Edit

Share via


HttpProtocolException(Int64, String, Exception) Constructor

Definition

Initializes a new instance of the HttpProtocolException class with the specified error code, message, and inner exception.

public:
 HttpProtocolException(long errorCode, System::String ^ message, Exception ^ innerException);
public HttpProtocolException (long errorCode, string? message, Exception? innerException);
public HttpProtocolException (long errorCode, string message, Exception? innerException);
new System.Net.Http.HttpProtocolException : int64 * string * Exception -> System.Net.Http.HttpProtocolException
Public Sub New (errorCode As Long, message As String, innerException As Exception)

Parameters

errorCode
Int64

The HTTP/2 or HTTP/3 error code.

message
String

The error message that explains the reason for the exception.

innerException
Exception

The exception that is the cause of the current exception.

Applies to