mint.stacktrace - Palamecia/mint GitHub Wiki
Module mint.stacktrace
Description
load mint.stacktrace
This module provides tools to access the stacktrace.
Classes
StackFrame
This class provides a stack frame informations about an exception's stacktrace.
Public members
| Modifiers | Member | Description |
|---|---|---|
const |
getLineNumber | Returns the line number as a number. |
const |
getModuleId | Returns the module ID as a number. |
const |
getModuleName | Returns the module name as a string. |
const |
getSourceLine | Returns the line content as a string. |
const |
getSystemFileName | Returns the module file name in the filesystem as a string. |
const |
getSystemPath | Returns the module path in the filesystem as a string. |
const |
new | Creates an new stack frame for the module with ID moduleId, named moduleName ... |
const |
toString | Returns the string representation of the stack frame. |
Private members
| Modifiers | Member | Description |
|---|---|---|
final |
d_ptr | Object data. |
@ const |
g_lib | Global library handle. |
Functions
Descriptions
StackFrame.d_ptr
null
Object data.
StackFrame.g_lib
lib ('libmint-mint')
Global library handle.
StackFrame.getLineNumber
def (const self)
Returns the line number as a number.
StackFrame.getModuleId
def (const self)
Returns the module ID as a number.
StackFrame.getModuleName
def (const self)
Returns the module name as a string.
StackFrame.getSourceLine
def (const self)
Returns the line content as a string.
StackFrame.getSystemFileName
def (const self)
Returns the module file name in the filesystem as a string.
StackFrame.getSystemPath
def (const self)
Returns the module path in the filesystem as a string.
StackFrame.new
def (self, moduleId, moduleName, lineNumber)
Creates an new stack frame for the module with ID moduleId, named moduleName at line lineNumber.
def (self, moduleName, lineNumber)
Creates an new stack frame for the module named moduleName at line lineNumber.
StackFrame.toString
def (const self)
Returns the string representation of the stack frame.
stacktrace
def ()
Returns the current stacktrace as an array of StackFrame. The array starts from the oldest call to the most recent
one. If the threadId parameter is given, the stacktrace of the thread * with the given id is used; otherwise the
current thread is used.