exception property from fcf.Exception class
Class: fcf.Exception
File: fcf-framework-core:fcf.js
Available from version: 2.0.2
The object of the error that caused the object to be instantiated
Example: Applying a property
fcf.addException("TEST_EXCEPTION", "Test exception: @{{value}}@");
let originError = new Error("Some error");
let error = new fcf.Exception("TEST_EXCEPTION", {value: 1}, originError);
console.log("Suberror:", error.exception);
Output:
Suberror: Some error