stackArr property from fcf.Exception class
[object ] stackArr
Class: fcf.Exception
File: fcf-framework-core:fcf.js
Available from version: 2.0.2
An array containing objects with a description of the call stack
The array element has the following properties
-
string function - Function name -
integer line - Line number -
integer column - Column number -
string file - File name
Example: Applying a property
let error = new fcf.Exception("TEST_EXCEPTION", {value: 1});
console.log("stackArr:", error.stackArr);
Output:
stackArr: [
{
function: 'new Exception',
line: '5106',
column: '104',
file: '/home/user/project/node_modules/fcf-framework-core/fcf.js'
},
{
function: 'Object.test',
line: '8',
column: '13',
file: '/home/user/project/Exception.js'
},
{
function: 'fcf.Actions.',
line: '615',
column: '26',
file: '/home/user/project/node_modules/fcf-framework-unitest/unitest.js'
},
...