TdxCloudStorage.TErrorEvent Type
The cloud storage error event type.
Declaration
TErrorEvent = procedure(Sender: TObject; const AErrorObject) of object;
Parameters
Name | Type | Description |
---|---|---|
Sender | TObject | The cloud storage component where an online file operation error has occurred. |
AErrorObject | A data structure that contains information on an occurred error. |
Remarks
Use the Sender parameter to access the cloud storage component in which an online file operation has occurred. To access the cloud storage component’s class members within a TErrorEvent event handler, cast the parameter value to the TdxCloudStorage class.
The AErrorObject parameter returns a data structure populated with information on an occurred error. Cast the parameter value to the actual error type to access the error information. For instance, AErrorObject returns a TdxJSONObject object populated with information on an occurred error (such as an invalid server response, an absent access permission, etc.) in case of the Google Drive and Microsoft OneDrive data providers.
The OnError event references the TErrorEvent nested procedural type.