Contains the ABL procedure call stack indicating where an ABL error or stop object was thrown.
Data type: CHARACTER
Access: PUBLIC Read-only
Applies to: Progress.Lang.ProError class, Progress.Lang.Stop class, System.Exception class (OpenEdge-enhanced)
Returns the contents of the call stack as a string when an ABL error or stop object or a .NET Exception object is thrown. If the error or stop occurs from the user interface, the procedure containing the latest WAIT-FOR statement will be at the top of the call stack.
For an error only, if the ERROR-STACK-TRACE attribute of the SESSION handle is set to FALSE, this property returns the Unknown value (?). To enable the CallStack property, set the SESSION:ERROR-STACK-TRACE attribute to TRUE, or use the -errorstack startup parameter at session startup.
For a stop, the value of ERROR-STACK-TRACE is irrelevant and CallStack always returns content from the procedure call stack.
For more information, see ERROR-STACK-TRACE attribute reference entry. For more information on -errorstack, see OpenEdge Deployment: Startup Command and Parameter Reference.
The call stack contains one entry for each item on the stack, starting with the last item, which is where the error or stop occurred. Each entry is delimited by the newline character. Each entry contains three values, separated by whitespace:
In addition, if part of the call stack is from an OpenEdge application server's stack trace, "Server StackTrace:" appears above the server portion of the stack.
The following summarizes the syntax for a call stack entry, depending on the source.
For a main block (.p):file-name at line line-number (full-file-name)For an internal procedure: internal-procedure-name file-name at line line-number (full-file-name)For a user-defined function: user-defined-function-name file-name at line line-number (full-file-name)For a class property or method: property-or-method-name class-name at line line-number (full-file-name) |