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.

DataServiceRequestException Class

Represents the error thrown if the data service returns a response code less than 200 or greater than 299, or the top-level element in the response is <error>. This class cannot be inherited.

System.Object
  System.Exception
    System.SystemException
      System.InvalidOperationException
        System.Data.Services.Client.DataServiceRequestException

Namespace:  System.Data.Services.Client
Assembly:  Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)

[SerializableAttribute]
public sealed class DataServiceRequestException : InvalidOperationException

The DataServiceRequestException type exposes the following members.

  NameDescription
Public methodDataServiceRequestException()Initializes a new instance of the DataServiceRequestException class with a system-supplied message that describes the error.
Public methodDataServiceRequestException(String)Initializes a new instance of the DataServiceRequestException class with a specified message that describes the error.
Public methodDataServiceRequestException(String, Exception)Initializes a new instance of the DataServiceRequestException class with a specified error message and a reference to the inner exception that is the cause of this exception.
Public methodDataServiceRequestException(String, Exception, DataServiceResponse)Initializes a new instance of the DataServiceRequestException class.
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 propertyResponseGets the response as a DataServiceResponse object.
Public propertySource (Inherited from Exception.)
Public propertyStackTrace (Inherited from Exception.)
Public propertyTargetSite (Inherited from Exception.)
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetBaseException (Inherited from Exception.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetObjectDataSecurity Critical. (Inherited from Exception.)
Public methodGetType (Inherited from Exception.)
Public methodToString (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.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft