The ProcessTransactionErrors event is triggered when the runtime system returns error messages to a client session.
Namespace – ABSuite.AccessLayer.Connector.Core
Assembly – Unisys.ABSuite.AccessLayer.Connector.Core (in Unisys.ABSuite.AccessLayer.Connector.Core.dll)
Syntax
event EventHandler<TransactionErrorsArgs> ProcessTransactionErrors
Using the IConnection Interface for the ProcessTransactionErrors Event
The following code is an example of using the ProcessTransactionErrors event:
// Register for the ProcessTransactionErrors event ABSConnection.ProcessTransactionErrors += HandleTransactionErrors; // HandleTransactionErrors is the handler for processing the error // messages received from the host as a result of the transaction // request. public void HandleTransactionErrors(object sender, TransactionErrorsArgs args) { // Retrieve the event details and log the information ApplicationLogger.LogInfo(() => string.Format("Transaction request resulted in errors from the host application")); // Check the HasErrors property if (args.HasErrors) { ApplicationLogger.LogInfo(() => string.Format("TransactionErrors ShowDialog is true!")); // Call the ProcessErrors method to process the errors from the host // system ProcessErrors(args.Errors); } // Call the ProcessErros method to process the errors // from the host system ProcessErrors(args.Errors); }