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

exception() method from fcf.Actions class

fcf.Actions exception()

Package: fcf-framework-core

File: fcf-framework-core:fcf.js

Available from version: 2.0.2

Throws an exception if the object of actions is in a state of error

Result
fcf.Actions
- Self pointer

Example: Function application

try { fcf.require("INCORRECT_PATH", {async: false, quiet: true}).options({quiet: true}).exception(); } catch(e) { console.error(e.message); }

Output:

Cannot find module 'INCORRECT_PATH' ...