Duration (Pacific Standard Time):
To (Pacific Standard Time):
Impact:
  • None
User Action:
  • None

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 NotInheritable Class DataServiceRequestException _
	Inherits InvalidOperationException
Dim instance As DataServiceRequestException

The DataServiceRequestException type exposes the following members.

  Name Description
Public method DataServiceRequestException() Initializes a new instance of the DataServiceRequestException class with a system-supplied message that describes the error.
Public method DataServiceRequestException(String) Initializes a new instance of the DataServiceRequestException class with a specified message that describes the error.
Public method DataServiceRequestException(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 method DataServiceRequestException(String, Exception, DataServiceResponse) Initializes a new instance of the DataServiceRequestException class.
Top
  Name Description
Public property Data (Inherited from Exception.)
Public property HelpLink (Inherited from Exception.)
Public property HResult (Inherited from Exception.)
Public property InnerException (Inherited from Exception.)
Public property Message (Inherited from Exception.)
Public property Response Gets the response as a DataServiceResponse object.
Public property Source (Inherited from Exception.)
Public property StackTrace (Inherited from Exception.)
Public property TargetSite (Inherited from Exception.)
Top
  Name Description
Public method Equals (Inherited from Object.)
Public method GetBaseException (Inherited from Exception.)
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData Security Critical. (Inherited from Exception.)
Public method GetType (Inherited from Exception.)
Public method ToString (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.