Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomAuthorizationAgent.OnError Event

In This Article

Notifies of an error occurring in the authorization agent.

#Declaration

Delphi
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.

See Also