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

error() method from fcf.Actions.Act class

error(Error a_error)

Class: fcf.Actions.Act

Package: fcf-framework-core

File: fcf.js

Available from version: 2.0.2

Sets the error state on the fcf.Actions object and ends execution of the pending action

Arguments

Error a_error
- Installable error

Example: Function application

fcf.actions() .then((a_lastResult, a_act)=>{ a_act.error(new Error("Test error")); }) .catch((a_error)=>{ console.error(a_error.message); });

Output:

Test error