Libraries anvil runtime StackTraceElement

class StackTraceElement
extends anvil.lang.object
Represents a single stack frame.

Methods

string getClassName()
Returns the fully qualified name of the class containing the execution point represented by this stack trace element.

Function getFunction()
Returns a handle to function (or method) containing the execution point represented by this stack trace element. Instance, if any, is inserted to handle as well.
Throws AccessDenied -  If security policy denies access to path represented by this stack trace element

string getFunctionName()
Returns the name of the function containing the execution point represented by this stack trace element.

object getInstance()
Returns the instance of class containing the execution point represented by this stack trace element.
Returns Instance, or undefined if the execution were not in method.
Throws AccessDenied -  If security policy denies access to path represented by this stack trace element

int getLine()
Returns the line number of the source line containing the execution point represented by this stack trace element.

Scope getModule()
Returns the module instance containing the execution point represented by this stack trace element.
Throws AccessDenied -  If security policy denies access to path represented by this stack trace element

string getPathinfo()
Returns the path of the source file containing the execution point represented by this stack trace element.