Sys.Data.AdoNetServiceError Constructor

Initializes a new instance of the AdoNetServiceError class.

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

Usage

var a = new Sys.Data.AdoNetServiceError(timedOut, message, stackTrack, exceptionType, errorObject);

Parameters

Arguments

Definition

timedOut

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

message

A string representing the text to associate with this error.

stackTrack

(Optional) A string representing the stack trace of the error.

exceptionType

(Optional) A string representing the server exception type.

errorObject

(Optional) The raw error object (if any) returned by the data service.

Remarks

The AdoNetServiceProxy class creates a new instance of the AdoNetServiceError class when the data service returns an error. You can access the AdoNetServiceError object in the callback function for the data operation that was performed.