Sys.Data.AdoNetServiceError Class

Represents an error from a data service.

Namespace: Sys.Data.

Inherits: None.

Sys.Data.AdoNetServiceError = function(timedOut, message, stackTrack, exceptionType, errorObject)

Public Constructors

Name

Description

Sys.Data.AdoNetServiceError Constructor

Creates a new instance of the AdoNetServiceError class.

Members

Member

Description

Sys.Data.AdoNetServiceError.errorObject Property

The object that represents the exception thrown by the data service.

Remarks

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