Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Net.​Http.​HttpProtocolException

Assembly: System.Net.Http

Inheritance: object → ExceptionSystemExceptionIO.​IOExceptionHttpIOException → HttpProtocolException

Implemented Interfaces

The exception thrown when an HTTP/2 or an HTTP/3 protocol error occurs.

Properties

public long
ErrorCode
Gets the HTTP/2 or HTTP/3 error code associated with this exception.
HttpRequestError
Gets the <see cref="T:System.Net.Http.HttpRequestError" /> that caused the exception.
public string
Message
Gets a message that describes the current exception.
public string
HelpLink
public int
HResult
public Exception
InnerException
public string
Source
public string
StackTrace
TargetSite

Methods

public Exception
GetBaseException​()
Inherited from Exception
public Type
GetType​()
Inherited from Exception
public string
ToString​()
Inherited from Exception
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object