Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
This topic has not yet been rated - Rate this topic

HttpRequestException Class

A base class for exceptions thrown by the HttpClient and HttpMessageHandler classes.

System.Object
  System.Exception
    System.Net.Http.HttpRequestException

Namespace:  System.Net.Http
Assembly:  System.Net.Http (in System.Net.Http.dll)
[SerializableAttribute]
public class HttpRequestException : Exception

The HttpRequestException type exposes the following members.

  NameDescription
Public methodHttpRequestException()Initializes a new instance of the HttpRequestException class.
Public methodHttpRequestException(String)Initializes a new instance of the HttpRequestException class with a specific message that describes the current exception.
Public methodHttpRequestException(String, Exception)Initializes a new instance of the HttpRequestException class with a specific message that describes the current exception and an inner exception.
Top
  NameDescription
Public propertyData (Inherited from Exception.)
Public propertyHelpLink (Inherited from Exception.)
Public propertyHResult (Inherited from Exception.)
Public propertyInnerException (Inherited from Exception.)
Public propertyMessage (Inherited from Exception.)
Public propertySource (Inherited from Exception.)
Public propertyStackTrace (Inherited from Exception.)
Public propertyTargetSite (Inherited from Exception.)
Top
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetBaseException (Inherited from Exception.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetObjectDataSecurity Critical. (Inherited from Exception.)
Public methodGetType (Inherited from Exception.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Exception.)
Top
  NameDescription
Protected eventSerializeObjectState (Inherited from Exception.)
Top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.