Apama Documentation : Developing Apama Applications : EPL Reference : Types : Reference types : StackTraceElement
StackTraceElement
A StackTraceElement type value is an object that contains information about one entry in the stack trace.
Usage
A com.apama.exceptions.Exception object contains a sequence of StackTrackElement objects, which indicate where an exception occurred. The correlator generates this sequence. You should not need to create StackTraceElement objects yourself. The first object in the sequence points to the line of code that caused the exception. The next object points to the action that contains the code that caused the exception. The next object points to the action that called that action, and so on.
The StackTraceElement type is defined in the com.apama.exceptions namespace. Typically, you specify using com.apama.exceptions.StackTraceElement so you can easily refer to StackTraceElement objects.
It is permissible to parse an event that contains a StackTraceElement object or a sequence of StackTraceElement objects.
Methods
The following methods may be called on values of StackTraceElement type:
*getActionName() — returns a string that contains the name of the action in which the exception occurred.
*getFilename() — returns a string that contains the name of the file that contains the code in which the exception occurred.
*getLineNumber() — returns an integer that indicates the line number of the code in which the exception occurred.
*getTypeName() — returns a string that indicates the type (event, aggregate, monitor) that contains the action in which the exception occurred.
*toString() — returns a string whose format is "typeName.actionName() filename:linenumber".
Copyright © 2013-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback