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

exception property from fcf.Exception class

Error|fcf.Exception exception

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