Chapter 5
Using the FRP Library – Bacon.js
Section 2
Errors and Exception Handling in Bacon.js
This video explains how Bacon.js library is a library for functional reactive programming. More specifically, it is a library for working with events and dynamic values (which are called Properties in Bacon.js). It provides the Bacon.Error constructor to explicitly mark events or values of EventStreams or properties respectively as errors so that Bacon can identify them and open up a wide variety of other APIs to work with those errors specifically. Let us begin with: - Subscribing to errors - Mapping errors - Retrying a function call - Ending an EventStream or property on error - Handling exceptions