TcxSchedulerWebServiceStorage.TProviderErrorEvent Type
The online event data provider error event type.
Declaration
TProviderErrorEvent = procedure(Sender: TObject; AProvider: TcxSchedulerWebServiceStorageCustomProvider; const AErrorObject) of object;
Parameters
Name | Type | Description |
---|---|---|
Sender | TObject | The web service persistence manager where an error has occurred. |
AProvider | TcxSchedulerWebServiceStorageCustomProvider | The event data provider where an error has occurred. |
AErrorObject | A data structure populated with error information. |
Remarks
The Sender parameter provides access to the web service persistence manager that uses the online event data provider in which an error has occurred. To access all class members of the persistence manager, cast the parameter value to the TcxSchedulerWebServiceStorage class.
The AProvider parameter provides access to the event data provider in which an error has occurred. To access the provider’s class-specific members, cast the parameter value to its actual class (TcxSchedulerWebServiceStorageOfficeProvider, for instance).
The AErrorObject parameter returns a data structure that contains information on an occurred error. Cast the parameter value to the actual error class to obtain the error information. The currently supported online event data providers return a populated TdxJSONObject object if an error occurs (such as an incorrect server response, no permissions for the requested operation, etc.)
The OnProviderError event references the TProviderErrorEvent nested procedural type.