Share via


DataServiceClientException Class

Definition

The exception that is thrown when the server returns an error.

[System.Serializable]
public sealed class DataServiceClientException : InvalidOperationException
[<System.Serializable>]
type DataServiceClientException = class
    inherit InvalidOperationException
Public NotInheritable Class DataServiceClientException
Inherits InvalidOperationException
Inheritance
DataServiceClientException
Attributes

Constructors

DataServiceClientException()

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

DataServiceClientException(String, Exception, Int32)

Initializes a new instance of the DataServiceClientException class.

DataServiceClientException(String, Exception)

Initializes a new instance of the DataServiceClientException class with a specified error message and a reference to the inner exception that is the cause of this exception.

DataServiceClientException(String, Int32)

Initializes a new instance of the DataServiceClientException class.

DataServiceClientException(String)

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

Properties

StatusCode

Gets the HTTP error status code returned after DataServiceClientException.

Methods

GetObjectData(SerializationInfo, StreamingContext)

Applies to