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

name property from fcf.Exception class

string name

Class: fcf.Exception

File: fcf-framework-core:fcf.js

Available from version: 2.0.2

Event name. The given name defines the error message template

Example: Applying a property

fcf.addException("TEST_EXCEPTION", "Test exception: @{{value}}@"); let error = new fcf.Exception("TEST_EXCEPTION", {value: 1}); console.log("Name:", error.name);

Output:

Name: TEST_EXCEPTION