TdxCustomAuthorizationAgent.OnError Event
Notifies of an error occurring in the authorization agent.
Declaration
property OnError: TErrorEvent read; write;
Remarks
An attempt to authenticate and authorize the agent component in an online account by calling the StartAuthorization or RestartAuthorization procedure can result in errors due to incorrectly specified account credentials, network unavailability, incorrect server response, or access denial. The OnError event fires every time the authorization agent fails to obtain or refresh an online account access token. You can handle this event to obtain information on the error from a populated TdxJSONObject object passed into the event handler as the AErrorObject parameter. Refer to the TErrorEvent nested procedural type description for detailed information on parameters that you can use in the OnError event handler.