TdxCloudStorage.TErrorEvent Type
The cloud storage error event type.
Declaration
TErrorEvent = procedure(Sender: TObject; AErrorObject: TObject) of object;
Parameters
Name | Type | Description |
---|---|---|
Sender | TObject | The cloud storage component where an online file operation error has occurred. |
AErrorObject | TObject | A container populated with error information. |
Remarks
Use the Sender
parameter to access the cloud storage component where an online file operation has occurred. To access all public API 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.) for Google Drive and Microsoft OneDrive data providers.
Direct TdxCloudStorage.OnError Type Reference
The TdxCloudStorage.OnError event references the TErrorEvent
nested procedural type.