FCF 2.0 development in progress...
> > > >
[News] [Packages API] [Downloads] [Donate to the project] [Contacts]

fcf.errorToString() function

string fcf.errorToString(Error a_error, boolean a_fullMode = false)

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 a_error
- Error object

boolean a_fullMode = false
- If the parameter is true, then text with the call stack is added to the message
Result
string
- String representation of the error

Example: Function application

let info = fcf.errorToString(new Error()); console.log(info);

Output:

Error: Test error