vcl-dxauthorizationagents-dot-tdxcustomauthorizationagent.md
The authorization agent error event type.
TErrorEvent = procedure(Sender: TObject; AErrorObject: TObject) of object;
| Name | Type | Description |
|---|---|---|
| Sender | TObject |
An authorization agent that failed to authorize in an online account.
| | AErrorObject | TObject |
A container populated with error information.
|
The Sender parameter provides access to the agent that failed to authorize in an online account. To access the agent’s class members, cast the parameter value to the corresponding TdxCustomAuthorizationAgent class descendant. Call the Sender.ClassType function or use other RTTI functionality to identify the actual authorization agent type.
The AErrorObject parameter returns a data structure that contains information on an error. Cast the parameter to the actual error object type to obtain error information. The currently implemented authorization agent components return a populated TdxJSONObject object if an error occurs during an attempt to authorize an agent in an online account.
The TdxCustomAuthorizationAgent.OnError event references the TErrorEvent nested procedural type.
See Also
TdxCloudStorage.TErrorEvent Procedural Type
TcxSchedulerWebServiceStorage.TProviderErrorEvent Procedural Type