HttpProtocolException(Int64, String, Exception) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.