File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -192,6 +192,28 @@ Set an end point for a group of parallel tasks.
192192
193193
194194
195+ ### flow.error( callback );
196+
197+ Error handler for in case there is any.
198+
199+ #### Arguments
200+
201+ > callback
202+
203+ type: Function
204+ desc: Error handler to break the flow.
205+
206+ #### Example code
207+
208+ var Flow = require( 'node.flow' );
209+ var flow = new Flow();
210+
211+ flow.error( function ( err ){
212+ console.log( err );
213+ });
214+
215+
216+
195217### flow.end( callback, arg1, arg2, ... );
196218
197219Call the tasks one after another in the stack.
@@ -343,4 +365,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
343365IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
344366CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
345367TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
346- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
368+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
You can’t perform that action at this time.
0 commit comments