Share via


DataServiceRequestException Class

Definition

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.Serializable]
public sealed class DataServiceRequestException : InvalidOperationException
[<System.Serializable>]
type DataServiceRequestException = class
    inherit InvalidOperationException
Public NotInheritable Class DataServiceRequestException
Inherits InvalidOperationException
Inheritance
DataServiceRequestException
Attributes

Constructors

DataServiceRequestException()

Initializes a new instance of the DataServiceRequestException class with a system-supplied message that describes the error.

DataServiceRequestException(String, Exception, DataServiceResponse)

Initializes a new instance of the DataServiceRequestException class.

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.

DataServiceRequestException(String)

Initializes a new instance of the DataServiceRequestException class with a specified message that describes the error.

Properties

Response

Gets the response as a DataServiceResponse object.

Applies to