OpcCmd Utility Tips and Tricks

From OPC Labs Knowledge Base
Revision as of 08:29, 7 July 2021 by User (talk | contribs) (Created page with "Category:OpcCmd Utility Category:Tips and tricks ; Displaying exception information from an event : If a command produces events that contain errors, you may want to d...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Displaying exception information from an event
If a command produces events that contain errors, you may want to display the details of the exception information related to particular event in a nicely formatted way, analogically to what the error? (shortened: er?) command does. To do so, determine the index eventIndex of the event in the sequence, and then enter the following command: events? eventIndex --!extractMember EventArgs.ErrorDescendInfos (shortened: ev? eventIndex -!xm EventArgs.ErrorDescendInfos). The resulting table starts with a row for the outmost exception, and the subsequent row(s) contain the inner exception(s), recursively. An error ID and the full error message is listed with each exception.