From emotive
Jump to navigation Jump to search


Name GetStackTrace
Short Description Return the procedure call stack for a given exception.
Class Term
Extension OTX Core library
Group Exception related terms
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

ListTerm = GetStackTrace(ExceptionTerm);


GetStackTrace is a ListTerm return the procedure call stack for a given exception. The call stack shall be determined when the exception is created, not when it is thrown. The returned list contain the fully qualified names ofthe invoked procedures, e.g. {"myCompany.otx. myProcedure", "myCompany.otx.main"}.

Exclamation.png Important: Please keep in mind that this TermActivity in the form of an activity exists and no text can be entered. According to the respective ActionNode can further properties are added.

Return Value

The Term returns the value, see table below.

Icons Note.png In OTX, Terms are categorized according to its return data type!
Data Type Description
List The procedure call stack for a given exception


Name Data Type Class Default Cardinality Description
ExceptionTerm Exception Term - [1] Exception


Exception exceptionVariable;
String result;
List<Integer> List1;
List<String> List2;

   ListInsertItems(List1, 1, {1});
catch (Exception exceptionVariable)

List2 = GetStackTrace(exceptionVariable);

See also