TdxCustomAuthorizationAgent.TErrorEvent Type
The authorization agent error event type.
Declaration
TErrorEvent = procedure(Sender: TObject; const AErrorObject) of object;
Parameters
Name | Type | Description |
---|---|---|
Sender | TObject | An authorization agent that failed to authorize in an online account. |
AErrorObject | A data structure populated with error information. |
Remarks
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.ClassName or Sender.ClassType function to identify tha authorization agent’s 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 OnError event references the TErrorEvent nested procedural type.