Core.Terms.GetStackTrace

From emotive
Revision as of 06:38, 14 August 2014 by Nb (talk | contribs) (Created page with "Category:Core == Classification == {{ClassificationActivity | GetStackTrace | Return the procedure call stack for a given exception. | Term | OTX Core library...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Classification

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

Pseudo-Code Syntax

Value = GetStackTrace(ExceptionTerm)

Description

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

Properties

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

Examples

List<String> result = GetStackTrace(exceptionVariable)

See also

GetExceptionOriginatorNode
GetExceptionQualifier
GetExceptionText