fcf.errorToString() function
Package: fcf-framework-core
File: fcf-framework-core:fcf.js
Available from version: 2.0.2
Converts the error object to a string representation
Arguments
- Error object
- If the parameter is true , then text with the call stack is added to the message
Result
- String representation of the error
Example: Function application
let info = fcf.errorToString(new Error());
console.log(info);
Output:
Error: Test error