OTX Reference  
OpenTestSystem.Otx.Core.Terms.GetStackTrace Class Reference

Procedure call stack for an exception More...

Inheritance diagram for OpenTestSystem.Otx.Core.Terms.GetStackTrace:
Inheritance graph

Public Attributes

ExceptionTerm exception
 Exception object, which contains information about the exception. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Terms.Term
MetaData metaData
 Store additional More...
 

Detailed Description

Procedure call stack for an exception

GetStackTrace is a term, which returns the procedure call stack for a given exception. The zeroth element of the list represents the top of the stack, which is the last procedure invocation in the sequence.

Syntax
ListTerm = GetStackTrace(ExceptionTerm);
Examples
// Local Declarations
// Exception exceptionVariable;
String result;
List<Integer> List1;
List<String> List2;
// Flow
try
{
ListInsertItems(List1, 1, { 1});
}
catch (Exception exceptionVariable)
{
}
List2 = GetStackTrace(exceptionVariable);

Member Data Documentation

◆ exception

ExceptionTerm OpenTestSystem.Otx.Core.Terms.GetStackTrace.exception

Exception object, which contains information about the exception.