Sys.Data.DataServiceError

Represents an error from a data service.

Namespace: Sys.Data.

Inherits: None.

Syntax

Sys.Data.DataServiceError = function(timedOut, message, stackTrace, exceptionType)

Public Constructors

Name

Description

DataServiceError Constructor

Creates a new instance of the DataServiceError class.

Members

Member

Description

exceptionType Property

The type of the exception that was thrown by the data service.

message Property

The description of the error.

stackTrace Property

Gets the stack trace of the error.

statusCode Property

The HTTP status code of the response.

timedOut Property

A value that indicates whether the data operation exceeded the time-out limit.

Remarks

When the data service throws an exception during a data operation, the DataService class creates a new instance of the DataServiceError class and stores information about the exception in that object. You use the DataServiceError class to retrieve information about the exception. You can access the DataServiceError object in the callback function for the data operation that was performed. When a single data operation is executed, the DataServiceError object is passed to callback function for failed operations. When a sequence of actions is executed, the DataServiceError object is passed in the result property of ActionResult object.

This topic is ASP.NET Extensions documentation and is unsupported by Microsoft. Blank topics are included as placeholders and existing content is subject to change in future releases.