HttpRequestException Class
A base class for exceptions thrown by the HttpClient and HttpMessageHandler classes.
Inheritance Hierarchy
System.Object
System.Exception
System.Net.Http.HttpRequestException
Namespace: System.Net.Http
Assembly: System.Net.Http (in System.Net.Http.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public Class HttpRequestException _
Inherits Exception
'Usage
Dim instance As HttpRequestException
[SerializableAttribute]
public class HttpRequestException : Exception
[SerializableAttribute]
public ref class HttpRequestException : public Exception
[<SerializableAttribute>]
type HttpRequestException =
class
inherit Exception
end
public class HttpRequestException extends Exception
The HttpRequestException type exposes the following members.
Constructors
Name | Description | |
---|---|---|
HttpRequestException() | Initializes a new instance of the HttpRequestException class. | |
HttpRequestException(String) | Initializes a new instance of the HttpRequestException class with a specific message that describes the current exception. | |
HttpRequestException(String, Exception) | Initializes a new instance of the HttpRequestException class with a specific message that describes the current exception and an inner exception. |
Top
Properties
Name | Description | |
---|---|---|
Data | (Inherited from Exception.) | |
HelpLink | (Inherited from Exception.) | |
HResult | (Inherited from Exception.) | |
InnerException | (Inherited from Exception.) | |
Message | (Inherited from Exception.) | |
Source | (Inherited from Exception.) | |
StackTrace | (Inherited from Exception.) | |
TargetSite | (Inherited from Exception.) |
Top
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetBaseException | (Inherited from Exception.) | |
GetHashCode | (Inherited from Object.) | |
GetObjectData | Security Critical. (Inherited from Exception.) | |
GetType | (Inherited from Exception.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Exception.) |
Top
Events
Name | Description | |
---|---|---|
SerializeObjectState | (Inherited from Exception.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.